Class MCRCategoryDAOImplTest
java.lang.Object
org.mycore.common.MCRTestCase
org.mycore.common.MCRJPATestCase
org.mycore.datamodel.classifications2.impl.MCRCategoryDAOImplTest
-
Field Summary
Fields inherited from class org.mycore.common.MCRTestCase
junitFolder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Test case for https://sourceforge.net/p/mycore/bugs/612/void
Test case for https://sourceforge.net/p/mycore/bugs/664/void
children()
void
void
void
void
void
void
void
void
void
void
static MCRCategory
loadClassificationResource
(String resourceName) void
void
void
void
void
void
void
void
tests relink child to grandparent and removal of parent.void
void
void
void
void
setLabel()
void
void
setUp()
initializes MCRConfiguration with an empty property file.void
tearDown()
void
void
void
tests top category child to new parentMethods inherited from class org.mycore.common.MCRJPATestCase
beginTransaction, dropSchema, endTransaction, exportSchema, getDefaultSchema, getEntityManager, printResultSet, startNewTransaction
Methods inherited from class org.mycore.common.MCRTestCase
bzzz, getCurrentComponentName, getResourceAsStream, getResourceAsURL, getTestProperties, initBaseDir, initProperties, isDebugEnabled
-
Constructor Details
-
MCRCategoryDAOImplTest
public MCRCategoryDAOImplTest()
-
-
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:
-
tearDown
- Overrides:
tearDown
in classMCRJPATestCase
- Throws:
Exception
-
testLicenses
- Throws:
Exception
-
testClassEditorBatch
- Throws:
Exception
-
addCategory
- Throws:
MCRException
-
addCategorySingleSteps
public void addCategorySingleSteps()Test case for https://sourceforge.net/p/mycore/bugs/612/ -
addCategoryToPosition
public void addCategoryToPosition()Test case for https://sourceforge.net/p/mycore/bugs/664/ -
deleteRootCategory
public void deleteRootCategory() -
deleteSubCategory
public void deleteSubCategory() -
deleteMultipleCategories
public void deleteMultipleCategories() -
getCategoriesByLabel
public void getCategoriesByLabel() -
getCategory
public void getCategory() -
getChildren
public void getChildren() -
getParents
public void getParents() -
getRootCategoryIDs
public void getRootCategoryIDs() -
getRootCategories
public void getRootCategories() -
getRootCategory
public void getRootCategory() -
children
public void children() -
moveCategoryWithoutIndex
- Throws:
SQLException
-
moveCategoryInParent
- Throws:
SQLException
-
moveRightCategory
- Throws:
SQLException
-
moveCategoryUp
public void moveCategoryUp() -
moveCategoryDeep
public void moveCategoryDeep() -
removeLabel
public void removeLabel() -
replaceCategory
public void replaceCategory() throws URISyntaxException, MCRException, SAXParseException, IOException -
replaceCategoryWithAdoption
public void replaceCategoryWithAdoption() throws URISyntaxException, MCRException, SAXParseException, IOException -
replaceSameCategory
- Throws:
Exception
-
replaceMarcRelator
- Throws:
Exception
-
setLabel
public void setLabel() -
setLabels
public void setLabels() -
replaceCategoryShiftCase
public void replaceCategoryShiftCase()tests relink child to grandparent and removal of parent. -
replaceCategoryWithItself
public void replaceCategoryWithItself() -
testReplaceCategoryNewParent
public void testReplaceCategoryNewParent()tests top category child to new parent -
loadClassificationResource
public static MCRCategory loadClassificationResource(String resourceName) throws SAXParseException, IOException, URISyntaxException
-