diff --git a/persistence-modules/hibernate-annotations/src/test/java/com/baeldung/hibernate/lazycollection/LazyCollectionIntegrationTest.java b/persistence-modules/hibernate-annotations/src/test/java/com/baeldung/hibernate/lazycollection/LazyCollectionIntegrationTest.java index 63ea1e1e3f..97888471a4 100644 --- a/persistence-modules/hibernate-annotations/src/test/java/com/baeldung/hibernate/lazycollection/LazyCollectionIntegrationTest.java +++ b/persistence-modules/hibernate-annotations/src/test/java/com/baeldung/hibernate/lazycollection/LazyCollectionIntegrationTest.java @@ -97,12 +97,6 @@ public class LazyCollectionIntegrationTest { Assert.assertFalse(Hibernate.isInitialized(branch.getAdditionalEmployees())); } - @After - public void tearDown() { - session.getTransaction().commit(); - session.close(); - } - @AfterClass public static void afterTests() { sessionFactory.close();