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 TypeReferenceTest to Junit 5 #4470

Merged

Conversation

MartinWitt
Copy link
Collaborator

#3919

The following has changed in the code:

Junit4 @test Annotation

  • Replaced junit 4 test annotation with junit 5 test annotation in testGetAllExecutablesForInterfaces
  • Replaced junit 4 test annotation with junit 5 test annotation in loadReferencedClassFromClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in doNotCloseLoader
  • Replaced junit 4 test annotation with junit 5 test annotation in testNullReferenceSubtype
  • Replaced junit 4 test annotation with junit 5 test annotation in unboxTest
  • Replaced junit 4 test annotation with junit 5 test annotation in testToStringEqualityBetweenTwoGenericTypeDifferent
  • Replaced junit 4 test annotation with junit 5 test annotation in testRecursiveTypeReference
  • Replaced junit 4 test annotation with junit 5 test annotation in testRecursiveTypeReferenceInGenericType
  • Replaced junit 4 test annotation with junit 5 test annotation in testUnknownSuperClassWithSameNameInNoClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in testPackageInNoClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceSpecifiedInClassDeclarationInNoClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceSpecifiedInClassDeclarationInNoClasspathWithGenerics
  • Replaced junit 4 test annotation with junit 5 test annotation in testArgumentOfAInvocationIsNotATypeAccess
  • Replaced junit 4 test annotation with junit 5 test annotation in testInvocationWithFieldAccessInNoClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationOnMethodWithPrimitiveReturnTypeInNoClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in testAnonymousClassesHaveAnEmptyStringForItsNameInNoClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in testConstructorCallInNoClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in testShortTypeReference
  • Replaced junit 4 test annotation with junit 5 test annotation in testClearBoundsForWildcardReference
  • Replaced junit 4 test annotation with junit 5 test annotation in testIgnoreEnclosingClassInActualTypes
  • Replaced junit 4 test annotation with junit 5 test annotation in testCorrectEnumParent
  • Replaced junit 4 test annotation with junit 5 test annotation in testImproveAPIActualTypeReference
  • Replaced junit 4 test annotation with junit 5 test annotation in testIsSubTypeSuperClassNull
  • Replaced junit 4 test annotation with junit 5 test annotation in testSubTypeAnonymous
  • Replaced junit 4 test annotation with junit 5 test annotation in testGetTypeDeclaration
  • Replaced junit 4 test annotation with junit 5 test annotation in testTypeDeclarationWildcard
  • Replaced junit 4 test annotation with junit 5 test annotation in testEqualityTypeReference
  • Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceWithGenerics
  • Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceImplicitParent
  • Replaced junit 4 test annotation with junit 5 test annotation in testIsInTheSamePackageNoClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in testQualifiedArrayTypeReferenceNoClasspath
  • Replaced junit 4 test annotation with junit 5 test annotation in testUnqualifiedExternalTypeMemberAccess
  • Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceToChildClass
  • Replaced junit 4 test annotation with junit 5 test annotation in testProblemTypeReferenceToChildClass

AssertionsTransformation

  • Transformed junit4 assert to junit 5 assertion in testGetAllExecutablesForInterfaces
  • Transformed junit4 assert to junit 5 assertion in loadReferencedClassFromClasspath
  • Transformed junit4 assert to junit 5 assertion in doNotCloseLoader
  • Transformed junit4 assert to junit 5 assertion in testNullReferenceSubtype
  • Transformed junit4 assert to junit 5 assertion in unboxTest
  • Transformed junit4 assert to junit 5 assertion in testToStringEqualityBetweenTwoGenericTypeDifferent
  • Transformed junit4 assert to junit 5 assertion in testRecursiveTypeReference
  • Transformed junit4 assert to junit 5 assertion in testRecursiveTypeReferenceInGenericType
  • Transformed junit4 assert to junit 5 assertion in testUnknownSuperClassWithSameNameInNoClasspath
  • Transformed junit4 assert to junit 5 assertion in testPackageInNoClasspath
  • Transformed junit4 assert to junit 5 assertion in testTypeReferenceSpecifiedInClassDeclarationInNoClasspath
  • Transformed junit4 assert to junit 5 assertion in testTypeReferenceSpecifiedInClassDeclarationInNoClasspathWithGenerics
  • Transformed junit4 assert to junit 5 assertion in testArgumentOfAInvocationIsNotATypeAccess
  • Transformed junit4 assert to junit 5 assertion in testInvocationWithFieldAccessInNoClasspath
  • Transformed junit4 assert to junit 5 assertion in testAnnotationOnMethodWithPrimitiveReturnTypeInNoClasspath
  • Transformed junit4 assert to junit 5 assertion in testAnonymousClassesHaveAnEmptyStringForItsNameInNoClasspath
  • Transformed junit4 assert to junit 5 assertion in testConstructorCallInNoClasspath
  • Transformed junit4 assert to junit 5 assertion in testShortTypeReference
  • Transformed junit4 assert to junit 5 assertion in testClearBoundsForWildcardReference
  • Transformed junit4 assert to junit 5 assertion in testIgnoreEnclosingClassInActualTypes
  • Transformed junit4 assert to junit 5 assertion in testCorrectEnumParent
  • Transformed junit4 assert to junit 5 assertion in testImproveAPIActualTypeReference
  • Transformed junit4 assert to junit 5 assertion in testIsSubTypeSuperClassNull
  • Transformed junit4 assert to junit 5 assertion in testSubTypeAnonymous
  • Transformed junit4 assert to junit 5 assertion in testGetTypeDeclaration
  • Transformed junit4 assert to junit 5 assertion in testTypeDeclarationWildcard
  • Transformed junit4 assert to junit 5 assertion in testEqualityTypeReference
  • Transformed junit4 assert to junit 5 assertion in testTypeReferenceWithGenerics
  • Transformed junit4 assert to junit 5 assertion in testTypeReferenceImplicitParent
  • Transformed junit4 assert to junit 5 assertion in testIsInTheSamePackageNoClasspath
  • Transformed junit4 assert to junit 5 assertion in testQualifiedArrayTypeReferenceNoClasspath
  • Transformed junit4 assert to junit 5 assertion in testUnqualifiedExternalTypeMemberAccess
  • Transformed junit4 assert to junit 5 assertion in testTypeReferenceToChildClass
  • Transformed junit4 assert to junit 5 assertion in testProblemTypeReferenceToChildClass

 The following has changed in the code:
Replaced junit 4 test annotation with junit 5 test annotation in testGetAllExecutablesForInterfaces
Replaced junit 4 test annotation with junit 5 test annotation in loadReferencedClassFromClasspath
Replaced junit 4 test annotation with junit 5 test annotation in doNotCloseLoader
Replaced junit 4 test annotation with junit 5 test annotation in testNullReferenceSubtype
Replaced junit 4 test annotation with junit 5 test annotation in unboxTest
Replaced junit 4 test annotation with junit 5 test annotation in testToStringEqualityBetweenTwoGenericTypeDifferent
Replaced junit 4 test annotation with junit 5 test annotation in testRecursiveTypeReference
Replaced junit 4 test annotation with junit 5 test annotation in testRecursiveTypeReferenceInGenericType
Replaced junit 4 test annotation with junit 5 test annotation in testUnknownSuperClassWithSameNameInNoClasspath
Replaced junit 4 test annotation with junit 5 test annotation in testPackageInNoClasspath
Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceSpecifiedInClassDeclarationInNoClasspath
Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceSpecifiedInClassDeclarationInNoClasspathWithGenerics
Replaced junit 4 test annotation with junit 5 test annotation in testArgumentOfAInvocationIsNotATypeAccess
Replaced junit 4 test annotation with junit 5 test annotation in testInvocationWithFieldAccessInNoClasspath
Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationOnMethodWithPrimitiveReturnTypeInNoClasspath
Replaced junit 4 test annotation with junit 5 test annotation in testAnonymousClassesHaveAnEmptyStringForItsNameInNoClasspath
Replaced junit 4 test annotation with junit 5 test annotation in testConstructorCallInNoClasspath
Replaced junit 4 test annotation with junit 5 test annotation in testShortTypeReference
Replaced junit 4 test annotation with junit 5 test annotation in testClearBoundsForWildcardReference
Replaced junit 4 test annotation with junit 5 test annotation in testIgnoreEnclosingClassInActualTypes
Replaced junit 4 test annotation with junit 5 test annotation in testCorrectEnumParent
Replaced junit 4 test annotation with junit 5 test annotation in testImproveAPIActualTypeReference
Replaced junit 4 test annotation with junit 5 test annotation in testIsSubTypeSuperClassNull
Replaced junit 4 test annotation with junit 5 test annotation in testSubTypeAnonymous
Replaced junit 4 test annotation with junit 5 test annotation in testGetTypeDeclaration
Replaced junit 4 test annotation with junit 5 test annotation in testTypeDeclarationWildcard
Replaced junit 4 test annotation with junit 5 test annotation in testEqualityTypeReference
Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceWithGenerics
Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceImplicitParent
Replaced junit 4 test annotation with junit 5 test annotation in testIsInTheSamePackageNoClasspath
Replaced junit 4 test annotation with junit 5 test annotation in testQualifiedArrayTypeReferenceNoClasspath
Replaced junit 4 test annotation with junit 5 test annotation in testUnqualifiedExternalTypeMemberAccess
Replaced junit 4 test annotation with junit 5 test annotation in testTypeReferenceToChildClass
Replaced junit 4 test annotation with junit 5 test annotation in testProblemTypeReferenceToChildClass
Transformed junit4 assert to junit 5 assertion in testGetAllExecutablesForInterfaces
Transformed junit4 assert to junit 5 assertion in loadReferencedClassFromClasspath
Transformed junit4 assert to junit 5 assertion in doNotCloseLoader
Transformed junit4 assert to junit 5 assertion in testNullReferenceSubtype
Transformed junit4 assert to junit 5 assertion in unboxTest
Transformed junit4 assert to junit 5 assertion in testToStringEqualityBetweenTwoGenericTypeDifferent
Transformed junit4 assert to junit 5 assertion in testRecursiveTypeReference
Transformed junit4 assert to junit 5 assertion in testRecursiveTypeReferenceInGenericType
Transformed junit4 assert to junit 5 assertion in testUnknownSuperClassWithSameNameInNoClasspath
Transformed junit4 assert to junit 5 assertion in testPackageInNoClasspath
Transformed junit4 assert to junit 5 assertion in testTypeReferenceSpecifiedInClassDeclarationInNoClasspath
Transformed junit4 assert to junit 5 assertion in testTypeReferenceSpecifiedInClassDeclarationInNoClasspathWithGenerics
Transformed junit4 assert to junit 5 assertion in testArgumentOfAInvocationIsNotATypeAccess
Transformed junit4 assert to junit 5 assertion in testInvocationWithFieldAccessInNoClasspath
Transformed junit4 assert to junit 5 assertion in testAnnotationOnMethodWithPrimitiveReturnTypeInNoClasspath
Transformed junit4 assert to junit 5 assertion in testAnonymousClassesHaveAnEmptyStringForItsNameInNoClasspath
Transformed junit4 assert to junit 5 assertion in testConstructorCallInNoClasspath
Transformed junit4 assert to junit 5 assertion in testShortTypeReference
Transformed junit4 assert to junit 5 assertion in testClearBoundsForWildcardReference
Transformed junit4 assert to junit 5 assertion in testIgnoreEnclosingClassInActualTypes
Transformed junit4 assert to junit 5 assertion in testCorrectEnumParent
Transformed junit4 assert to junit 5 assertion in testImproveAPIActualTypeReference
Transformed junit4 assert to junit 5 assertion in testIsSubTypeSuperClassNull
Transformed junit4 assert to junit 5 assertion in testSubTypeAnonymous
Transformed junit4 assert to junit 5 assertion in testGetTypeDeclaration
Transformed junit4 assert to junit 5 assertion in testTypeDeclarationWildcard
Transformed junit4 assert to junit 5 assertion in testEqualityTypeReference
Transformed junit4 assert to junit 5 assertion in testTypeReferenceWithGenerics
Transformed junit4 assert to junit 5 assertion in testTypeReferenceImplicitParent
Transformed junit4 assert to junit 5 assertion in testIsInTheSamePackageNoClasspath
Transformed junit4 assert to junit 5 assertion in testQualifiedArrayTypeReferenceNoClasspath
Transformed junit4 assert to junit 5 assertion in testUnqualifiedExternalTypeMemberAccess
Transformed junit4 assert to junit 5 assertion in testTypeReferenceToChildClass
Transformed junit4 assert to junit 5 assertion in testProblemTypeReferenceToChildClass
@monperrus monperrus merged commit da5f05c into INRIA:master Jan 13, 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