Class ClassificationSystemVersionDaoTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class ClassificationSystemVersionDaoTest extends ServicelayerTransactionalTest
  • Constructor Details

    • ClassificationSystemVersionDaoTest

      public ClassificationSystemVersionDaoTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • testFindClassesByCode

      public void testFindClassesByCode()
      Tests the findClassesByCode(systemVersion, code). One and only one ClassificationClass with code "electronics" can be found.
    • testFindAttributesByCode

      public void testFindAttributesByCode()
      Tests the findAttributesByCode(systemVersion, code). One and only one ClassificationAttribute with code "weight" can be found.
    • testFindAttributeValuesByCode

      public void testFindAttributeValuesByCode()
      Tests the findAttributeValuesByCode(systemVersion, code). One and only one ClassificationAttributeValue with code "S_370" can be found.
    • testFindAttributeUnitsByCode

      public void testFindAttributeUnitsByCode()
      Tests the findAttributeUnitsByCode(systemVersion, code). One and only one ClassificationAttributeUnit with code "minute" can be found.
    • testFindAttributeUnitsBySystemVersion

      public void testFindAttributeUnitsBySystemVersion()
      Tests the findAttributeUnitsBySystemVersion(systemVersion). There will be 26 ClassificationAttributeUnits found.
    • testFindConvertibleUnits

      public void testFindConvertibleUnits()
      Tests the findConvertibleUnits(attributeUnit). There will be 3 units found for the attribute unit "sec", and 2 units for the attribute unit "kg".
    • testFindUnitsOfTypeBySystemVersion

      public void testFindUnitsOfTypeBySystemVersion()
      Tests the testFindUnitsOfTypeBySystemVersion(systemVersion, type). There will be 4 unit types found with type "time".
    • testFindUnitTypesBySystemVersion

      public void testFindUnitTypesBySystemVersion()
      Tests the findUnitTypesBySystemVersion(systemVersion). There will be 11 different unit types found.
    • testFindSystemVersions

      public void testFindSystemVersions()
      Tests the findSystemVersions(String systemId, String systemVersion). There will be 1 classification system version "SampleClassification 1.0" found.