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 forClassificationSystemVersionDao.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description ClassificationSystemVersionDaoTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestFindAttributesByCode()Tests the findAttributesByCode(systemVersion, code).voidtestFindAttributeUnitsByCode()Tests the findAttributeUnitsByCode(systemVersion, code).voidtestFindAttributeUnitsBySystemVersion()Tests the findAttributeUnitsBySystemVersion(systemVersion).voidtestFindAttributeValuesByCode()Tests the findAttributeValuesByCode(systemVersion, code).voidtestFindClassesByCode()Tests the findClassesByCode(systemVersion, code).voidtestFindConvertibleUnits()Tests the findConvertibleUnits(attributeUnit).voidtestFindSystemVersions()Tests the findSystemVersions(String systemId, String systemVersion).voidtestFindUnitsOfTypeBySystemVersion()Tests the testFindUnitsOfTypeBySystemVersion(systemVersion, type).voidtestFindUnitTypesBySystemVersion()Tests the findUnitTypesBySystemVersion(systemVersion).-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.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.
-
-