-
-
Notifications
You must be signed in to change notification settings - Fork 352
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 AnnotationTest to junit 5 #4415
Merged
monperrus
merged 1 commit into
INRIA:master
from
MartinWitt:refactor/junit5/AnnotationTest
Jan 11, 2022
Merged
test: migrate AnnotationTest to junit 5 #4415
monperrus
merged 1 commit into
INRIA:master
from
MartinWitt:refactor/junit5/AnnotationTest
Jan 11, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following has changed in the code: Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter() Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter() Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter() Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter() Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter() Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter() Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter() Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter() Replaced Assert.assertThat with MatcherAssert.assertThat in annotationAddValue() Replaced Assert.assertThat with MatcherAssert.assertThat in annotationAddValue() Replaced Assert.assertThat with MatcherAssert.assertThat in annotationAddValue() Replaced Assert.assertThat with MatcherAssert.assertThat in annotationOverrideFQNIsOK() Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationValueReflection Replaced junit 4 test annotation with junit 5 test annotation in testModelBuildingAnnotationBound Replaced junit 4 test annotation with junit 5 test annotation in testWritingAnnotParamArray Replaced junit 4 test annotation with junit 5 test annotation in testModelBuildingAnnotationBoundUsage Replaced junit 4 test annotation with junit 5 test annotation in testPersistenceProperty Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationParameterTypes Replaced junit 4 test annotation with junit 5 test annotation in testAnnotatedElementTypes Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationWithDefaultArrayValue Replaced junit 4 test annotation with junit 5 test annotation in testInnerAnnotationsWithArray Replaced junit 4 test annotation with junit 5 test annotation in testAccessAnnotationValue Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationInNewInstance Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationInCast Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationBeforeExceptionInSignatureOfMethod Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationInReturnTypeInMethod Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationOnParameterInMethod Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationOnLocalVariableInMethod Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationInExtendsImplementsOfAClass Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationWithGenericTypesInClassDeclaration Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationWithGenericTypesInStatements Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfParametersInTypeAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testOutputGeneratedByTypeAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnClass Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnField Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnMethod Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnConstructor Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnParameter Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnLocalVariable Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnPackage Replaced junit 4 test annotation with junit 5 test annotation in testDefaultValueInAnnotationsForAnnotationFields Replaced junit 4 test annotation with junit 5 test annotation in testGetAnnotationOuter Replaced junit 4 test annotation with junit 5 test annotation in testAbstractAllAnnotationProcessor Replaced junit 4 test annotation with junit 5 test annotation in testAbstractAllAnnotationProcessorWithGlobalAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationIntrospection Replaced junit 4 test annotation with junit 5 test annotation in testFieldAndMethodInAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationInterfacePreserveMethods Replaced junit 4 test annotation with junit 5 test annotation in testSpoonSpoonResult Replaced junit 4 test annotation with junit 5 test annotation in testGetAnnotationFromParameter Replaced junit 4 test annotation with junit 5 test annotation in annotationAddValue Replaced junit 4 test annotation with junit 5 test annotation in annotationOverrideFQNIsOK Replaced junit 4 test annotation with junit 5 test annotation in testCreateAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testReplaceAnnotationValue Replaced junit 4 test annotation with junit 5 test annotation in testSpoonManageRecursivelyDefinedAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testRepeatableAnnotationAreManaged Replaced junit 4 test annotation with junit 5 test annotation in testCreateRepeatableAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testRepeatableAnnotationAreManagedWithArrays Replaced junit 4 test annotation with junit 5 test annotation in testCreateRepeatableAnnotationWithArrays Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationNotRepeatableNotArrayAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationTypeAndFieldOnField Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationAndShadowDefaultRetentionPolicy Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationAndShadowClassRetentionPolicy Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationAndShadowRuntimeRetentionPolicy Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationArray Replaced junit 4 test annotation with junit 5 test annotation in testGetValueAsObject Replaced junit 4 test annotation with junit 5 test annotation in testCatchAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testCatchExpressionAnnotation Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationMethodModifiers Transformed junit4 assert to junit 5 assertion in testAnnotationValueReflection Transformed junit4 assert to junit 5 assertion in testModelBuildingAnnotationBound Transformed junit4 assert to junit 5 assertion in testWritingAnnotParamArray Transformed junit4 assert to junit 5 assertion in testModelBuildingAnnotationBoundUsage Transformed junit4 assert to junit 5 assertion in testPersistenceProperty Transformed junit4 assert to junit 5 assertion in testAnnotationParameterTypes Transformed junit4 assert to junit 5 assertion in testAnnotatedElementTypes Transformed junit4 assert to junit 5 assertion in testAnnotationWithDefaultArrayValue Transformed junit4 assert to junit 5 assertion in testInnerAnnotationsWithArray Transformed junit4 assert to junit 5 assertion in testAccessAnnotationValue Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationInNewInstance Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationInCast Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationBeforeExceptionInSignatureOfMethod Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationInReturnTypeInMethod Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationOnParameterInMethod Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationOnLocalVariableInMethod Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationInExtendsImplementsOfAClass Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationWithGenericTypesInClassDeclaration Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationWithGenericTypesInStatements Transformed junit4 assert to junit 5 assertion in testUsageOfParametersInTypeAnnotation Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnClass Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnField Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnMethod Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnConstructor Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnParameter Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnLocalVariable Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnPackage Transformed junit4 assert to junit 5 assertion in testDefaultValueInAnnotationsForAnnotationFields Transformed junit4 assert to junit 5 assertion in testGetAnnotationOuter Transformed junit4 assert to junit 5 assertion in testAbstractAllAnnotationProcessor Transformed junit4 assert to junit 5 assertion in testAbstractAllAnnotationProcessorWithGlobalAnnotation Transformed junit4 assert to junit 5 assertion in testAnnotationIntrospection Transformed junit4 assert to junit 5 assertion in testFieldAndMethodInAnnotation Transformed junit4 assert to junit 5 assertion in testAnnotationInterfacePreserveMethods Transformed junit4 assert to junit 5 assertion in testSpoonSpoonResult Transformed junit4 assert to junit 5 assertion in testCreateAnnotation Transformed junit4 assert to junit 5 assertion in testReplaceAnnotationValue Transformed junit4 assert to junit 5 assertion in testSpoonManageRecursivelyDefinedAnnotation Transformed junit4 assert to junit 5 assertion in testRepeatableAnnotationAreManaged Transformed junit4 assert to junit 5 assertion in testCreateRepeatableAnnotation Transformed junit4 assert to junit 5 assertion in testRepeatableAnnotationAreManagedWithArrays Transformed junit4 assert to junit 5 assertion in testCreateRepeatableAnnotationWithArrays Transformed junit4 assert to junit 5 assertion in testAnnotationNotRepeatableNotArrayAnnotation Transformed junit4 assert to junit 5 assertion in testAnnotationTypeAndFieldOnField Transformed junit4 assert to junit 5 assertion in testAnnotationAndShadowDefaultRetentionPolicy Transformed junit4 assert to junit 5 assertion in testAnnotationAndShadowClassRetentionPolicy Transformed junit4 assert to junit 5 assertion in testAnnotationAndShadowRuntimeRetentionPolicy Transformed junit4 assert to junit 5 assertion in testAnnotationArray Transformed junit4 assert to junit 5 assertion in testGetValueAsObject Transformed junit4 assert to junit 5 assertion in testCatchAnnotation Transformed junit4 assert to junit 5 assertion in testCatchExpressionAnnotation Transformed junit4 assert to junit 5 assertion in testAnnotationMethodModifiers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#3919
The following has changed in the code:
Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter()
Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter()
Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter()
Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter()
Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter()
Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter()
Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter()
Replaced Assert.assertThat with MatcherAssert.assertThat in testGetAnnotationFromParameter()
Replaced Assert.assertThat with MatcherAssert.assertThat in annotationAddValue()
Replaced Assert.assertThat with MatcherAssert.assertThat in annotationAddValue()
Replaced Assert.assertThat with MatcherAssert.assertThat in annotationAddValue()
Replaced Assert.assertThat with MatcherAssert.assertThat in annotationOverrideFQNIsOK()
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationValueReflection
Replaced junit 4 test annotation with junit 5 test annotation in testModelBuildingAnnotationBound
Replaced junit 4 test annotation with junit 5 test annotation in testWritingAnnotParamArray
Replaced junit 4 test annotation with junit 5 test annotation in testModelBuildingAnnotationBoundUsage
Replaced junit 4 test annotation with junit 5 test annotation in testPersistenceProperty
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationParameterTypes
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotatedElementTypes
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationWithDefaultArrayValue
Replaced junit 4 test annotation with junit 5 test annotation in testInnerAnnotationsWithArray
Replaced junit 4 test annotation with junit 5 test annotation in testAccessAnnotationValue
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationInNewInstance
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationInCast
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationBeforeExceptionInSignatureOfMethod
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationInReturnTypeInMethod
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationOnParameterInMethod
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationOnLocalVariableInMethod
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationInExtendsImplementsOfAClass
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationWithGenericTypesInClassDeclaration
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfTypeAnnotationWithGenericTypesInStatements
Replaced junit 4 test annotation with junit 5 test annotation in testUsageOfParametersInTypeAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testOutputGeneratedByTypeAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnClass
Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnField
Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnMethod
Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnConstructor
Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnParameter
Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnLocalVariable
Replaced junit 4 test annotation with junit 5 test annotation in testRepeatSameAnnotationOnPackage
Replaced junit 4 test annotation with junit 5 test annotation in testDefaultValueInAnnotationsForAnnotationFields
Replaced junit 4 test annotation with junit 5 test annotation in testGetAnnotationOuter
Replaced junit 4 test annotation with junit 5 test annotation in testAbstractAllAnnotationProcessor
Replaced junit 4 test annotation with junit 5 test annotation in testAbstractAllAnnotationProcessorWithGlobalAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationIntrospection
Replaced junit 4 test annotation with junit 5 test annotation in testFieldAndMethodInAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationInterfacePreserveMethods
Replaced junit 4 test annotation with junit 5 test annotation in testSpoonSpoonResult
Replaced junit 4 test annotation with junit 5 test annotation in testGetAnnotationFromParameter
Replaced junit 4 test annotation with junit 5 test annotation in annotationAddValue
Replaced junit 4 test annotation with junit 5 test annotation in annotationOverrideFQNIsOK
Replaced junit 4 test annotation with junit 5 test annotation in testCreateAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testReplaceAnnotationValue
Replaced junit 4 test annotation with junit 5 test annotation in testSpoonManageRecursivelyDefinedAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testRepeatableAnnotationAreManaged
Replaced junit 4 test annotation with junit 5 test annotation in testCreateRepeatableAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testRepeatableAnnotationAreManagedWithArrays
Replaced junit 4 test annotation with junit 5 test annotation in testCreateRepeatableAnnotationWithArrays
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationNotRepeatableNotArrayAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationTypeAndFieldOnField
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationAndShadowDefaultRetentionPolicy
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationAndShadowClassRetentionPolicy
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationAndShadowRuntimeRetentionPolicy
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationArray
Replaced junit 4 test annotation with junit 5 test annotation in testGetValueAsObject
Replaced junit 4 test annotation with junit 5 test annotation in testCatchAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testCatchExpressionAnnotation
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationMethodModifiers
Transformed junit4 assert to junit 5 assertion in testAnnotationValueReflection
Transformed junit4 assert to junit 5 assertion in testModelBuildingAnnotationBound
Transformed junit4 assert to junit 5 assertion in testWritingAnnotParamArray
Transformed junit4 assert to junit 5 assertion in testModelBuildingAnnotationBoundUsage
Transformed junit4 assert to junit 5 assertion in testPersistenceProperty
Transformed junit4 assert to junit 5 assertion in testAnnotationParameterTypes
Transformed junit4 assert to junit 5 assertion in testAnnotatedElementTypes
Transformed junit4 assert to junit 5 assertion in testAnnotationWithDefaultArrayValue
Transformed junit4 assert to junit 5 assertion in testInnerAnnotationsWithArray
Transformed junit4 assert to junit 5 assertion in testAccessAnnotationValue
Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationInNewInstance
Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationInCast
Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationBeforeExceptionInSignatureOfMethod
Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationInReturnTypeInMethod
Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationOnParameterInMethod
Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationOnLocalVariableInMethod
Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationInExtendsImplementsOfAClass
Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationWithGenericTypesInClassDeclaration
Transformed junit4 assert to junit 5 assertion in testUsageOfTypeAnnotationWithGenericTypesInStatements
Transformed junit4 assert to junit 5 assertion in testUsageOfParametersInTypeAnnotation
Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnClass
Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnField
Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnMethod
Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnConstructor
Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnParameter
Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnLocalVariable
Transformed junit4 assert to junit 5 assertion in testRepeatSameAnnotationOnPackage
Transformed junit4 assert to junit 5 assertion in testDefaultValueInAnnotationsForAnnotationFields
Transformed junit4 assert to junit 5 assertion in testGetAnnotationOuter
Transformed junit4 assert to junit 5 assertion in testAbstractAllAnnotationProcessor
Transformed junit4 assert to junit 5 assertion in testAbstractAllAnnotationProcessorWithGlobalAnnotation
Transformed junit4 assert to junit 5 assertion in testAnnotationIntrospection
Transformed junit4 assert to junit 5 assertion in testFieldAndMethodInAnnotation
Transformed junit4 assert to junit 5 assertion in testAnnotationInterfacePreserveMethods
Transformed junit4 assert to junit 5 assertion in testSpoonSpoonResult
Transformed junit4 assert to junit 5 assertion in testCreateAnnotation
Transformed junit4 assert to junit 5 assertion in testReplaceAnnotationValue
Transformed junit4 assert to junit 5 assertion in testSpoonManageRecursivelyDefinedAnnotation
Transformed junit4 assert to junit 5 assertion in testRepeatableAnnotationAreManaged
Transformed junit4 assert to junit 5 assertion in testCreateRepeatableAnnotation
Transformed junit4 assert to junit 5 assertion in testRepeatableAnnotationAreManagedWithArrays
Transformed junit4 assert to junit 5 assertion in testCreateRepeatableAnnotationWithArrays
Transformed junit4 assert to junit 5 assertion in testAnnotationNotRepeatableNotArrayAnnotation
Transformed junit4 assert to junit 5 assertion in testAnnotationTypeAndFieldOnField
Transformed junit4 assert to junit 5 assertion in testAnnotationAndShadowDefaultRetentionPolicy
Transformed junit4 assert to junit 5 assertion in testAnnotationAndShadowClassRetentionPolicy
Transformed junit4 assert to junit 5 assertion in testAnnotationAndShadowRuntimeRetentionPolicy
Transformed junit4 assert to junit 5 assertion in testAnnotationArray
Transformed junit4 assert to junit 5 assertion in testGetValueAsObject
Transformed junit4 assert to junit 5 assertion in testCatchAnnotation
Transformed junit4 assert to junit 5 assertion in testCatchExpressionAnnotation
Transformed junit4 assert to junit 5 assertion in testAnnotationMethodModifiers