Class ClassificationSystemVersionDaoTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.servicelayer.ServicelayerTransactionalTest
de.hybris.platform.classification.daos.ClassificationSystemVersionDaoTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class ClassificationSystemVersionDaoTest
extends ServicelayerTransactionalTest
Test for
ClassificationSystemVersionDao.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidTests the findAttributesByCode(systemVersion, code).voidTests the findAttributeUnitsByCode(systemVersion, code).voidTests the findAttributeUnitsBySystemVersion(systemVersion).voidTests the findAttributeValuesByCode(systemVersion, code).voidTests the findClassesByCode(systemVersion, code).voidTests the findConvertibleUnits(attributeUnit).voidTests the findSystemVersions(String systemId, String systemVersion).voidTests the testFindUnitsOfTypeBySystemVersion(systemVersion, type).voidTests the findUnitTypesBySystemVersion(systemVersion).Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
ClassificationSystemVersionDaoTest
public ClassificationSystemVersionDaoTest()
-
-
Method Details
-
setUp
- 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.
-