Skip to content

Commit da281e5

Browse files
committed
HHH-19916 - Drop JUnit 4 usage
Not converted... * org.hibernate.orm.test.type.AbstractJavaTimeTypeTest subtypes - crazy parameterization (see org.hibernate.orm.test.tm.InterceptorTransactionTest)
1 parent ff9d04d commit da281e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/schemavalidation/ViewValidationTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
import org.hibernate.tool.hbm2ddl.SchemaValidator;
2424
import org.hibernate.tool.schema.JdbcMetadataAccessStrategy;
2525
import org.hibernate.tool.schema.TargetType;
26-
import org.junit.jupiter.api.AfterAll;
27-
import org.junit.jupiter.api.BeforeAll;
26+
import org.junit.jupiter.api.AfterEach;
27+
import org.junit.jupiter.api.BeforeEach;
2828
import org.junit.jupiter.api.Test;
2929
import org.junit.jupiter.api.TestInstance;
3030
import org.junit.jupiter.params.ParameterizedClass;
@@ -68,8 +68,8 @@ public StandardServiceRegistry produceServiceRegistry(StandardServiceRegistryBui
6868
.build();
6969
}
7070

71-
@BeforeAll
72-
static void beforeAll(ServiceRegistryScope registryScope, DomainModelScope modelScope) {
71+
@BeforeEach
72+
void setUp(ServiceRegistryScope registryScope, DomainModelScope modelScope) {
7373
new SchemaExport().create( EnumSet.of( TargetType.DATABASE ), modelScope.getDomainModel() );
7474
JdbcUtils.withConnection( registryScope.getRegistry(), connection -> {
7575
try (var statement = connection.createStatement()) {
@@ -78,8 +78,8 @@ static void beforeAll(ServiceRegistryScope registryScope, DomainModelScope model
7878
} );
7979
}
8080

81-
@AfterAll
82-
static void afterAll(ServiceRegistryScope registryScope, DomainModelScope modelScope) {
81+
@AfterEach
82+
void tearDown(ServiceRegistryScope registryScope, DomainModelScope modelScope) {
8383
JdbcUtils.withConnection( registryScope.getRegistry(), connection -> {
8484
try (var statement = connection.createStatement()) {
8585
statement.execute( "DROP VIEW test_synonym CASCADE" );

0 commit comments

Comments
 (0)