Package ejava.examples.orm.rel
Class DemoBase
- java.lang.Object
-
- ejava.examples.orm.rel.DemoBase
-
- Direct Known Subclasses:
CompositeTest
,ManyManyMapTest
,ManyToManyTest
,ManyToOneUnidirectionalTest
,OneManyMapTest
,OneManyUnidirectionalTest
,OneToManyJoinTableTest
,OneToManyMapTest
,OneToManyTest
,OneToOneTest
,RelationshipOwnershipTest
public abstract class DemoBase extends Object
This class provides an example of how common text fixtures can be reused at both the class and object level. Each of the test cases within the suite are inheriting from this class and the @Annotations of this class are causing callbacks within the base to fire. The static/class variables are reused across the entire suite. The object variables are per testMethod.
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityManager
em
protected static EntityManagerFactory
emf
protected static org.slf4j.Logger
logBase
protected org.slf4j.Logger
logger
private static String
PERSISTENCE_UNIT
-
Constructor Summary
Constructors Constructor Description DemoBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
postcleanup()
protected void
precleanup()
void
setUpBase()
static void
setUpDownShared()
void
tearDownBase()
static void
tearDownBaseClass()
-
-
-
Field Detail
-
logBase
protected static org.slf4j.Logger logBase
-
logger
protected org.slf4j.Logger logger
-
PERSISTENCE_UNIT
private static final String PERSISTENCE_UNIT
- See Also:
- Constant Field Values
-
emf
protected static EntityManagerFactory emf
-
em
protected EntityManager em
-
-