-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-19846 Drop JUnit 4 usage #11113
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
base: main
Are you sure you want to change the base?
HHH-19846 Drop JUnit 4 usage #11113
Conversation
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/entity/Java5FeaturesTest.java
Fixed
Show fixed
Hide fixed
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/entity/Java5FeaturesTest.java
Fixed
Show fixed
Hide fixed
45025a8
to
239c0d9
Compare
...src/test/java/org/hibernate/orm/test/annotations/enumerated/mapkey/MapKeyEnumeratedTest.java
Fixed
Show fixed
Hide fixed
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytomany/Employer.java
Dismissed
Show dismissed
Hide dismissed
...c/test/java/org/hibernate/orm/test/annotations/onetoone/OneToOneJoinTableUniquenessTest.java
Dismissed
Show dismissed
Hide dismissed
assertThat( tableA != null && tableB != null ) | ||
.describedAs( "Could not find the expected tables." ) | ||
.isTrue(); | ||
assertThat( tableA.getUniqueKeys().values().iterator().next().getName() ) |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning test
tableA
this
.describedAs( "Could not find the expected tables." ) | ||
.isTrue(); | ||
assertThat( tableA.getUniqueKeys().values().iterator().next().getName() ) | ||
.isNotEqualTo( tableB.getUniqueKeys().values().iterator().next().getName() ); |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning test
tableB
this
PersonAddress _personAddress = scope.fromTransaction( entityManager -> { | ||
Person person1 = new Person( "ABC-123" ); | ||
Person person2 = new Person( "DEF-456" ); | ||
|
||
Address address1 = new Address("12th Avenue", "12A", "4005A"); | ||
Address address2 = new Address("18th Avenue", "18B", "4007B"); | ||
Address address1 = new Address( "12th Avenue", "12A", "4005A" ); | ||
Address address2 = new Address( "18th Avenue", "18B", "4007B" ); | ||
|
||
entityManager.persist(person1); | ||
entityManager.persist(person2); | ||
entityManager.persist( person1 ); | ||
entityManager.persist( person2 ); | ||
|
||
entityManager.persist(address1); | ||
entityManager.persist(address2); | ||
entityManager.persist( address1 ); | ||
entityManager.persist( address2 ); | ||
|
||
PersonAddress personAddress = new PersonAddress(person1, address1); | ||
entityManager.persist(personAddress); | ||
PersonAddress personAddress = new PersonAddress( person1, address1 ); | ||
entityManager.persist( personAddress ); | ||
return personAddress; | ||
}); | ||
} ); |
Check notice
Code scanning / CodeQL
Unread local variable Note test
Dropped Junit4 in packages:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.
https://hibernate.atlassian.net/browse/HHH-19846