Package org.mycore.datamodel.objectinfo
Class MCRObjectInfoEntityQueryResolverTest
java.lang.Object
org.mycore.common.MCRTestCase
org.mycore.common.MCRJPATestCase
org.mycore.datamodel.objectinfo.MCRObjectInfoEntityQueryResolverTest
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Instant
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final Instant
static final Instant
static final Instant
Fields inherited from class org.mycore.common.MCRTestCase
junitFolder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
setUp()
initializes MCRConfiguration with an empty property file.void
void
storeObjectInfo
(String id, Instant createdDate, Instant modifiedDate, String createdBy, String modifiedBy, String state, List<String> linkedCategoryIds) Methods inherited from class org.mycore.common.MCRJPATestCase
beginTransaction, dropSchema, endTransaction, exportSchema, getDefaultSchema, getEntityManager, printResultSet, startNewTransaction, tearDown
Methods inherited from class org.mycore.common.MCRTestCase
bzzz, getCurrentComponentName, getResourceAsStream, getResourceAsURL, initBaseDir, initProperties, isDebugEnabled
-
Field Details
-
YESTERDAY
-
ONE_WEEK_AGO
-
TWO_WEEKS_AGO
-
THREE_WEEKS_AGO
-
TEST_ID_1
- See Also:
-
TEST_ID_2
- See Also:
-
TEST_USER_1
- See Also:
-
TEST_USER_2
- See Also:
-
TEST_STATE_1
- See Also:
-
TEST_STATE_2
- See Also:
-
TEST_CATEGORY_1
- See Also:
-
TEST_CATEGORY_2
- See Also:
-
TEST_CATEGORY_3
- See Also:
-
-
Constructor Details
-
MCRObjectInfoEntityQueryResolverTest
public MCRObjectInfoEntityQueryResolverTest()
-
-
Method Details
-
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 classMCRJPATestCase
- Throws:
Exception
- See Also:
-
storeObjectInfo
-
sortByIdTest
public void sortByIdTest() -
createdBeforeTest
public void createdBeforeTest() -
createdAfterTest
public void createdAfterTest() -
modifiedBeforeTest
public void modifiedBeforeTest() -
modifiedAfterTest
public void modifiedAfterTest() -
createdByTest
public void createdByTest() -
objectNumberTest
public void objectNumberTest() -
objectTypeTest
public void objectTypeTest() -
stateTest
public void stateTest() -
categoryTest
public void categoryTest() -
getTestProperties
- Overrides:
getTestProperties
in classMCRTestCase
-