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 AnnotationTest to junit 5 #4415

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

MartinWitt
Copy link
Collaborator

#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

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
@monperrus monperrus merged commit ed896e5 into INRIA:master Jan 11, 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