Skip to content

Commit 0cc02b7

Browse files
committed
Domain model test template
Signed-off-by: Jan Schatteman <[email protected]>
1 parent 00cbec1 commit 0cc02b7

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Hibernate, Relational Persistence for Idiomatic Java
3+
*
4+
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
5+
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
6+
*/
7+
package org.hibernate.orm.test;
8+
9+
import org.hibernate.testing.orm.junit.DomainModel;
10+
import org.hibernate.testing.orm.junit.SessionFactory;
11+
import org.hibernate.testing.orm.junit.SessionFactoryScope;
12+
import org.junit.jupiter.api.AfterAll;
13+
import org.junit.jupiter.api.BeforeAll;
14+
import org.junit.jupiter.api.Test;
15+
16+
/**
17+
* @author Jan Schatteman
18+
*/
19+
@DomainModel (
20+
annotatedClasses = {}
21+
)
22+
@SessionFactory
23+
public class DomainModelTestCase {
24+
25+
@BeforeAll
26+
public void setup(SessionFactoryScope scope) {
27+
scope.inTransaction(
28+
session -> {
29+
}
30+
);
31+
}
32+
33+
@AfterAll
34+
public void tearDown(SessionFactoryScope scope) {
35+
scope.inTransaction(
36+
session -> {
37+
}
38+
);
39+
}
40+
41+
@Test
42+
public void testThis(SessionFactoryScope scope) {
43+
scope.inTransaction(
44+
session -> {
45+
46+
}
47+
);
48+
}
49+
50+
}

0 commit comments

Comments
 (0)