Skip to content

Commit 529cb2c

Browse files
committed
[#1546] Clean up JoinedSubclassInheritanceTest
1 parent 4dfb32a commit 529cb2c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/JoinedSubclassInheritanceTest.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import java.util.List;
1111
import java.util.Objects;
1212

13-
import org.junit.After;
1413
import org.junit.Test;
1514

1615
import io.vertx.ext.unit.TestContext;
@@ -30,18 +29,9 @@
3029
public class JoinedSubclassInheritanceTest extends BaseReactiveTest {
3130
@Override
3231
protected Collection<Class<?>> annotatedEntities() {
33-
return List.of( Book.class, Author.class, SpellBook.class );
32+
return List.of( Author.class, SpellBook.class, Book.class );
3433
}
3534

36-
@After
37-
public void cleanDb(TestContext context) {
38-
test( context, getSessionFactory()
39-
.withTransaction( s -> s.createQuery( "delete from Author" ).executeUpdate()
40-
.thenCompose( v -> s.createQuery( "delete from SpellBook" ).executeUpdate() )
41-
.thenCompose( v -> s.createQuery("delete from Book ").executeUpdate())) );
42-
}
43-
44-
4535
@Test
4636
public void testRootClassViaAssociation(TestContext context) {
4737
final Book book = new Book( 6, "The Boy, The Mole, The Fox and The Horse", new Date());

0 commit comments

Comments
 (0)