Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KON-162 Figure out way to simplify tests in KoClassDeclaration #149

Merged
merged 37 commits into from
May 16, 2023

Conversation

nataliapeterwas
Copy link
Collaborator

No description provided.

@jira-ticket-bot
Copy link

jira-ticket-bot bot commented May 11, 2023

@nataliapeterwas nataliapeterwas marked this pull request as ready for review May 15, 2023 10:44
import org.amshove.kluent.shouldBeEqualTo
import org.junit.jupiter.api.Test

class KoClassDeclarationForNameTest {
Copy link
Contributor

@igorwojda igorwojda May 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we don't need this test, because KoClassDeclarationImpl does not define name property - this should be moved to KoNamedDeclarationImpl

@igorwojda
Copy link
Contributor

We need to add tests to make sure every method/property and overridden method/property has a test class - this should be 1-1

eg.

  • Since KoImportDeclarationTest overrides the name property we should add KoImportDeclarationTestForNameTest
  • KoAnnotationDeclarationImpl has name, fullyQualifiedName, representsType and representsTypeOf properties, but we tests KoAnnotationDeclarationForNameTest that tests the name proeprty

@igorwojda igorwojda merged commit 1a8ccd5 into main May 16, 2023
@igorwojda igorwojda deleted the KON-97-figure-out-way-to-simplify-tests- branch May 16, 2023 10:39
@igorwojda
Copy link
Contributor

Will be addressed in following PR

@nataliapeterwas nataliapeterwas changed the title KON-97 Figure out way to simplify tests in KoClassDeclaration KON-162 Figure out way to simplify tests in KoClassDeclaration Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants