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 EntityManageremprotected static EntityManagerFactoryemfprotected static org.slf4j.LoggerlogBaseprotected org.slf4j.Loggerloggerprivate static StringPERSISTENCE_UNIT
-
Constructor Summary
Constructors Constructor Description DemoBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidpostcleanup()protected voidprecleanup()voidsetUpBase()static voidsetUpDownShared()voidtearDownBase()static voidtearDownBaseClass()
-
-
-
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
-
-