Skip to content

Commit 62afe92

Browse files
committed
HHH-19846 - Remove JUnit4: org.hibernate.orm.test.dialect.unit.locktimeout
Signed-off-by: Jan Schatteman <[email protected]>
1 parent d04b1f0 commit 62afe92

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/dialect/unit/locktimeout/DB2LockTimeoutTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@
99
import org.hibernate.dialect.DB2Dialect;
1010
import org.hibernate.dialect.DatabaseVersion;
1111
import org.hibernate.dialect.Dialect;
12-
import org.hibernate.testing.junit4.BaseUnitTestCase;
1312
import org.hibernate.testing.orm.junit.RequiresDialect;
14-
import org.junit.Test;
13+
import org.junit.jupiter.api.Test;
1514

1615
import static org.hibernate.Timeouts.SKIP_LOCKED;
17-
import static org.junit.Assert.assertEquals;
16+
import static org.junit.jupiter.api.Assertions.assertEquals;
1817

1918
/**
2019
* @author Gavin King
2120
*/
2221
@RequiresDialect(DB2Dialect.class)
23-
public class DB2LockTimeoutTest extends BaseUnitTestCase {
22+
public class DB2LockTimeoutTest {
2423

2524
private final Dialect dialect = new DB2Dialect( DatabaseVersion.make( 11, 5 ) );
2625

hibernate-core/src/test/java/org/hibernate/orm/test/dialect/unit/locktimeout/HANALockTimeoutTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
import org.hibernate.LockOptions;
99
import org.hibernate.dialect.Dialect;
1010
import org.hibernate.dialect.HANADialect;
11-
import org.hibernate.testing.junit4.BaseUnitTestCase;
1211
import org.hibernate.testing.orm.junit.RequiresDialect;
13-
import org.junit.Test;
12+
import org.junit.jupiter.api.Test;
1413

1514
import static org.hibernate.Timeouts.NO_WAIT;
1615
import static org.hibernate.Timeouts.SKIP_LOCKED;
17-
import static org.junit.Assert.assertEquals;
16+
import static org.junit.jupiter.api.Assertions.assertEquals;
1817

1918
/**
2019
* Expected lock clauses according to the official HANA FOR UPDATE clause documentation:
@@ -24,7 +23,7 @@
2423
* @author Vlad Mihalcea
2524
*/
2625
@RequiresDialect(HANADialect.class)
27-
public class HANALockTimeoutTest extends BaseUnitTestCase {
26+
public class HANALockTimeoutTest {
2827

2928
private final Dialect dialect = new HANADialect();
3029

hibernate-core/src/test/java/org/hibernate/orm/test/dialect/unit/locktimeout/OracleLockTimeoutTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
import org.hibernate.dialect.DatabaseVersion;
1010
import org.hibernate.dialect.Dialect;
1111
import org.hibernate.dialect.OracleDialect;
12-
import org.hibernate.testing.RequiresDialect;
13-
import org.hibernate.testing.junit4.BaseUnitTestCase;
14-
import org.junit.Test;
12+
import org.hibernate.testing.orm.junit.RequiresDialect;
13+
import org.junit.jupiter.api.Test;
1514

1615
import static org.hibernate.Timeouts.NO_WAIT;
1716
import static org.hibernate.Timeouts.SKIP_LOCKED;
18-
import static org.junit.Assert.assertEquals;
17+
import static org.junit.jupiter.api.Assertions.assertEquals;
1918

2019
/**
2120
* @author Vlad Mihalcea
2221
*/
2322
@RequiresDialect(OracleDialect.class)
24-
public class OracleLockTimeoutTest extends BaseUnitTestCase {
23+
public class OracleLockTimeoutTest {
2524

2625
private final Dialect dialect = new OracleDialect( DatabaseVersion.make( 12 ) );
2726

hibernate-core/src/test/java/org/hibernate/orm/test/dialect/unit/locktimeout/PostgreSQLLockTimeoutTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
import org.hibernate.dialect.Dialect;
1010
import org.hibernate.dialect.PostgreSQLDialect;
1111

12-
import org.hibernate.testing.junit4.BaseUnitTestCase;
1312
import org.hibernate.testing.orm.junit.RequiresDialect;
14-
import org.junit.Test;
13+
import org.junit.jupiter.api.Test;
1514

1615
import static org.hibernate.Timeouts.NO_WAIT;
1716
import static org.hibernate.Timeouts.SKIP_LOCKED;
18-
import static org.junit.Assert.assertEquals;
17+
import static org.junit.jupiter.api.Assertions.assertEquals;
1918

2019
/**
2120
* @author Vlad Mihalcea
2221
*/
2322
@RequiresDialect(PostgreSQLDialect.class)
24-
public class PostgreSQLLockTimeoutTest extends BaseUnitTestCase {
23+
public class PostgreSQLLockTimeoutTest {
2524

2625
private final Dialect dialect = new PostgreSQLDialect();
2726

0 commit comments

Comments
 (0)