Skip to content

Commit aa4d85c

Browse files
committed
HHH-19832 Upgrade to JUnit 6.0
1 parent c46738f commit aa4d85c

22 files changed

+48
-48
lines changed

documentation/documentation.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ configurations {
5757

5858
javadocClasspath {
5959
description = 'Class files for the javadoc to be built'
60-
resolutionStrategy.capabilitiesResolution.withCapability('org.junit.jupiter:junit-jupiter-params:'+testLibs.versions.junit5.get()) { details ->
60+
resolutionStrategy.capabilitiesResolution.withCapability('org.junit.jupiter:junit-jupiter-params:'+testLibs.versions.junitJupiter.get()) { details ->
6161
details.select( details.candidates.first() ).because( 'first' )
6262
}
6363

hibernate-testing/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The `hibernate-testing` module of Hibernate ORM defines utilities for writing
22
tests easier.
33

4-
This documentation focuses on the JUnit 5 & annotation based testing support...
4+
This documentation focuses on the JUnit 6 & annotation based testing support...
55

66

7-
// todo (6.1) : write more (duh)
7+
// todo (6.1) : write more (duh)

hibernate-testing/hibernate-testing.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ dependencies {
1515
api project( ':hibernate-community-dialects' )
1616

1717
api testLibs.junit4
18-
api testLibs.junit5Api
19-
api testLibs.junit5Params
18+
api testLibs.junitJupiterApi
19+
api testLibs.junitJupiterParams
2020

2121
api testLibs.hamcrest
2222
api testLibs.assertjCore
@@ -55,8 +55,8 @@ dependencies {
5555
// Since we don't need WildFly Elytron in our tests, we'll just exclude it.
5656
exclude group: 'org.wildfly.security', module: 'wildfly-elytron'
5757
}
58-
implementation testLibs.junit5Engine
59-
implementation testLibs.junit5Launcher
58+
implementation testLibs.junitJupiterEngine
59+
implementation testLibs.junitJupiterLauncher
6060

6161
annotationProcessor project( ':hibernate-processor' )
6262
}

hibernate-testing/src/main/java/org/hibernate/testing/AfterClassOnce.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* except this annotation need not be attached to a static method
1616
*
1717
* @author Steve Ebersole
18-
* @deprecated Use JUnit 5 along with one of the Hibernate ORM's class-level test annotations
18+
* @deprecated Use JUnit Jupiter along with one of the Hibernate ORM's class-level test annotations
1919
* ({@link org.hibernate.testing.orm.junit.BaseUnitTest},
2020
* {@link org.hibernate.testing.orm.junit.SessionFactory},
2121
* {@link org.hibernate.testing.orm.junit.Jpa},

hibernate-testing/src/main/java/org/hibernate/testing/BeforeClassOnce.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* except this annotation need not be attached to a static method
1616
*
1717
* @author Steve Ebersole
18-
* @deprecated Use JUnit 5 along with one of the Hibernate ORM's class-level test annotations
18+
* @deprecated Use JUnit Jupiter along with one of the Hibernate ORM's class-level test annotations
1919
* ({@link org.hibernate.testing.orm.junit.BaseUnitTest},
2020
* {@link org.hibernate.testing.orm.junit.SessionFactory},
2121
* {@link org.hibernate.testing.orm.junit.Jpa},

hibernate-testing/src/main/java/org/hibernate/testing/FailureExpected.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* @author Hardy Ferentschik
1616
* @author Steve Ebersole
17-
* @deprecated Use JUnit 5 and {@link org.hibernate.testing.orm.junit.FailureExpected} instead.
17+
* @deprecated Use JUnit Jupiter and {@link org.hibernate.testing.orm.junit.FailureExpected} instead.
1818
*/
1919
@Retention(RetentionPolicy.RUNTIME)
2020
@Target({ ElementType.METHOD, ElementType.TYPE })

hibernate-testing/src/main/java/org/hibernate/testing/OnExpectedFailure.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Annotation used to identify a method as a callback to be executed whenever a {@link FailureExpected} is handled.
1414
*
1515
* @author Steve Ebersole
16-
* @deprecated No replacement with JUnit 5 at the moment.
16+
* @deprecated No replacement with JUnit Jupiter at the moment.
1717
*/
1818
@Retention( RetentionPolicy.RUNTIME )
1919
@Target( ElementType.METHOD )

hibernate-testing/src/main/java/org/hibernate/testing/OnFailure.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Annotation used to identify a method as a callback to be executed on test failures.
1414
*
1515
* @author Steve Ebersole
16-
* @deprecated No replacement with JUnit 5 at the moment.
16+
* @deprecated No replacement with JUnit Jupiter at the moment.
1717
*/
1818
@Retention( RetentionPolicy.RUNTIME )
1919
@Target( ElementType.METHOD )

hibernate-testing/src/main/java/org/hibernate/testing/RequiresDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @see RequiresDialects
2020
*
2121
* @author Hardy Ferentschik
22-
* @deprecated Use JUnit 5 and {@link org.hibernate.testing.orm.junit.RequiresDialect} instead.
22+
* @deprecated Use JUnit Jupiter and {@link org.hibernate.testing.orm.junit.RequiresDialect} instead.
2323
*/
2424
@Target({ ElementType.METHOD, ElementType.TYPE })
2525
@Retention(RetentionPolicy.RUNTIME)

hibernate-testing/src/main/java/org/hibernate/testing/RequiresDialectFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* specified feature.
1515
*
1616
* @author Hardy Ferentschik
17-
* @deprecated Use JUnit 5 and {@link org.hibernate.testing.orm.junit.RequiresDialectFeature} instead.
17+
* @deprecated Use JUnit Jupiter and {@link org.hibernate.testing.orm.junit.RequiresDialectFeature} instead.
1818
*/
1919
@Target({ ElementType.METHOD, ElementType.TYPE })
2020
@Retention(RetentionPolicy.RUNTIME)

0 commit comments

Comments
 (0)