From ec0f3554624ccac9e2a2cd6c2f61ed045bf61622 Mon Sep 17 00:00:00 2001 From: AbdallahSawan Date: Sun, 11 Apr 2021 01:01:57 +0300 Subject: [PATCH] Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan --- .../lazycollection/LazyCollectionIntegrationTest.java | 6 ------ 1 file changed, 6 deletions(-) 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();