Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 9f5cc1c

Browse files
committed
hibernate: deleted not needed code
1 parent 3bbb4df commit 9f5cc1c

File tree

3 files changed

+4
-69
lines changed

3 files changed

+4
-69
lines changed

hibernate/app/src/main/java/es/msanchez/frameworks/java/spring/boot/controller/HelloController.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

hibernate/app/src/test/java/es/msanchez/frameworks/java/spring/boot/controller/HelloControllerTest.java

Lines changed: 0 additions & 53 deletions
This file was deleted.

hibernate/app/src/test/java/es/msanchez/frameworks/java/spring/boot/hibernate/HibernateUtilTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import es.msanchez.frameworks.java.spring.boot.entity.Hobby;
44
import es.msanchez.frameworks.java.spring.boot.entity.Person;
55
import org.hibernate.Session;
6+
import org.testng.annotations.AfterClass;
67
import org.testng.annotations.AfterMethod;
8+
import org.testng.annotations.BeforeClass;
79
import org.testng.annotations.BeforeMethod;
810
import org.testng.annotations.Test;
911

@@ -14,12 +16,12 @@ public class HibernateUtilTest {
1416

1517
private Session session;
1618

17-
@BeforeMethod
19+
@BeforeClass
1820
public void setUp() {
1921
this.session = HibernateUtil.getSESSION_FACTORY().openSession();
2022
}
2123

22-
@AfterMethod
24+
@AfterClass
2325
public void tearDown() {
2426
HibernateUtil.shutdown();
2527
}

0 commit comments

Comments
 (0)