Package org.mycore.common
Class MCRJPATestCase
java.lang.Object
org.mycore.common.MCRTestCase
org.mycore.common.MCRJPATestCase
- Direct Known Subclasses:
MCRCategLinkServiceImplTest
,MCRCategoryConditionTest
,MCRCategoryDAOImplTest
,MCRJobQueueTest
,MCRJPAAccessStoreTest
,MCRMetadataHistoryManagerTest
,MCRObjectInfoEntityManagerTest
,MCRObjectInfoEntityQueryResolverTest
,MCRPackerManagerTest
,MCRStateConditionTest
,MCRStoreTestCase
-
Field Summary
Fields inherited from class org.mycore.common.MCRTestCase
junitFolder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
protected void
void
protected Optional<EntityManager>
protected static void
printResultSet
(ResultSet resultSet, PrintStream out) void
setUp()
initializes MCRConfiguration with an empty property file.protected void
void
tearDown()
Methods inherited from class org.mycore.common.MCRTestCase
bzzz, getCurrentComponentName, getResourceAsStream, getResourceAsURL, getTestProperties, initBaseDir, initProperties, isDebugEnabled
-
Constructor Details
-
MCRJPATestCase
public MCRJPATestCase()
-
-
Method Details
-
getEntityManager
-
printResultSet
- Throws:
SQLException
-
setUp
Description copied from class:MCRTestCase
initializes MCRConfiguration with an empty property file. This can be used to test MyCoRe classes without any propties set, using default. You may want to set Properties per TestCase with the set() method ofMCRConfiguration2
- Overrides:
setUp
in classMCRTestCase
- Throws:
Exception
- See Also:
-
exportSchema
- Throws:
IOException
-
getDefaultSchema
-
dropSchema
- Throws:
IOException
-
tearDown
- Overrides:
tearDown
in classMCRTestCase
- Throws:
Exception
-
beginTransaction
protected void beginTransaction() -
endTransaction
protected void endTransaction() -
startNewTransaction
protected void startNewTransaction()
-