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

test: migrate DeleteTest to JUnit 5 #4494

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

MartinWitt
Copy link
Collaborator

#3919

Change Log

The following bad smells are refactored:

JUnit4-@test

The JUnit 4 @Test annotation should be replaced with JUnit 5 @Test annotation.

JUnit4Assertion

The JUnit4 assertion should be replaced with JUnit5 Assertions.

The following has changed in the code:

JUnit4-@test

  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAStatementInAnonymousExecutable
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAStatementInStaticAnonymousExecutable
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAStatementInConstructor
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAStatementInMethod
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteReturn
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteStatementInCase
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteACaseOfASwitch
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteMethod
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteParameterOfMethod
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteBodyOfAMethod
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAnnotationOnAClass
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAClassTopLevel
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteConditionInACondition
  • Replaced junit 4 test annotation with junit 5 test annotation in testDeleteChainOfAssignment

JUnit4Assertion

  • Transformed junit4 assert to junit 5 assertion in testDeleteAStatementInAnonymousExecutable
  • Transformed junit4 assert to junit 5 assertion in testDeleteAStatementInStaticAnonymousExecutable
  • Transformed junit4 assert to junit 5 assertion in testDeleteAStatementInConstructor
  • Transformed junit4 assert to junit 5 assertion in testDeleteAStatementInMethod
  • Transformed junit4 assert to junit 5 assertion in testDeleteReturn
  • Transformed junit4 assert to junit 5 assertion in testDeleteStatementInCase
  • Transformed junit4 assert to junit 5 assertion in testDeleteACaseOfASwitch
  • Transformed junit4 assert to junit 5 assertion in testDeleteMethod
  • Transformed junit4 assert to junit 5 assertion in testDeleteParameterOfMethod
  • Transformed junit4 assert to junit 5 assertion in testDeleteBodyOfAMethod
  • Transformed junit4 assert to junit 5 assertion in testDeleteAnnotationOnAClass
  • Transformed junit4 assert to junit 5 assertion in testDeleteAClassTopLevel
  • Transformed junit4 assert to junit 5 assertion in testDeleteConditionInACondition
  • Transformed junit4 assert to junit 5 assertion in testDeleteChainOfAssignment

 The following has changed in the code:
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAStatementInAnonymousExecutable
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAStatementInStaticAnonymousExecutable
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAStatementInConstructor
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAStatementInMethod
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteReturn
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteStatementInCase
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteACaseOfASwitch
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteMethod
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteParameterOfMethod
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteBodyOfAMethod
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAnnotationOnAClass
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteAClassTopLevel
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteConditionInACondition
Replaced junit 4 test annotation with junit 5 test annotation in testDeleteChainOfAssignment
Transformed junit4 assert to junit 5 assertion in testDeleteAStatementInAnonymousExecutable
Transformed junit4 assert to junit 5 assertion in testDeleteAStatementInStaticAnonymousExecutable
Transformed junit4 assert to junit 5 assertion in testDeleteAStatementInConstructor
Transformed junit4 assert to junit 5 assertion in testDeleteAStatementInMethod
Transformed junit4 assert to junit 5 assertion in testDeleteReturn
Transformed junit4 assert to junit 5 assertion in testDeleteStatementInCase
Transformed junit4 assert to junit 5 assertion in testDeleteACaseOfASwitch
Transformed junit4 assert to junit 5 assertion in testDeleteMethod
Transformed junit4 assert to junit 5 assertion in testDeleteParameterOfMethod
Transformed junit4 assert to junit 5 assertion in testDeleteBodyOfAMethod
Transformed junit4 assert to junit 5 assertion in testDeleteAnnotationOnAClass
Transformed junit4 assert to junit 5 assertion in testDeleteAClassTopLevel
Transformed junit4 assert to junit 5 assertion in testDeleteConditionInACondition
Transformed junit4 assert to junit 5 assertion in testDeleteChainOfAssignment
@slarse slarse merged commit fbb2a5c into INRIA:master Jan 14, 2022
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