Class MCRCategoryDAOImplTest

java.lang.Object
org.mycore.common.MCRTestCase
org.mycore.common.MCRJPATestCase
org.mycore.datamodel.classifications2.impl.MCRCategoryDAOImplTest

public class MCRCategoryDAOImplTest extends MCRJPATestCase
  • Constructor Details

    • MCRCategoryDAOImplTest

      public MCRCategoryDAOImplTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      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 of MCRConfiguration2
      Overrides:
      setUp in class MCRJPATestCase
      Throws:
      Exception
      See Also:
    • tearDown

      public void tearDown() throws Exception
      Overrides:
      tearDown in class MCRJPATestCase
      Throws:
      Exception
    • testLicenses

      public void testLicenses() throws Exception
      Throws:
      Exception
    • testClassEditorBatch

      public void testClassEditorBatch() throws Exception
      Throws:
      Exception
    • addCategory

      public void addCategory() throws MCRException
      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

      public void moveCategoryWithoutIndex() throws SQLException
      Throws:
      SQLException
    • moveCategoryInParent

      public void moveCategoryInParent() throws SQLException
      Throws:
      SQLException
    • moveRightCategory

      public void moveRightCategory() throws SQLException
      Throws:
      SQLException
    • moveCategoryUp

      public void moveCategoryUp()
    • moveCategoryDeep

      public void moveCategoryDeep()
    • removeLabel

      public void removeLabel()
    • replaceCategory

      public void replaceCategory() throws URISyntaxException, MCRException, SAXParseException, IOException
      Throws:
      URISyntaxException
      MCRException
      SAXParseException
      IOException
    • replaceCategoryWithAdoption

      public void replaceCategoryWithAdoption() throws URISyntaxException, MCRException, SAXParseException, IOException
      Throws:
      URISyntaxException
      MCRException
      SAXParseException
      IOException
    • replaceSameCategory

      public void replaceSameCategory() throws Exception
      Throws:
      Exception
    • replaceMarcRelator

      public void replaceMarcRelator() throws Exception
      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
      Throws:
      SAXParseException
      IOException
      URISyntaxException