Class DefaultClassificationServiceIntegrationTest
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.impl.DefaultClassificationServiceIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class DefaultClassificationServiceIntegrationTest
extends ServicelayerTransactionalTest
-
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 TypeMethodDescriptionvoidTest for PLA-11992.voidTest for PLA-10797.voidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestSetFeatureValuesToZero(String identifier) voidtestSetModelFVToLessThanJaloFV(String identifier) voidtestSetModelFVToMoreThanJaloFV(String identifier) voidtesting the method classificationService.setFeature(prodmodel, feature) in different combinationsvoidtestTest()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
-
DefaultClassificationServiceIntegrationTest
public DefaultClassificationServiceIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testClassificationFeaturesReadAndWrite
public void testClassificationFeaturesReadAndWrite() -
testClassificationClasses
public void testClassificationClasses() -
testGetAttributeUnits
public void testGetAttributeUnits() -
testSetFeatureValuesToZero
public void testSetFeatureValuesToZero() -
testSetFeatureValuesToLessThanNormal
public void testSetFeatureValuesToLessThanNormal() -
testSetFeatureValuesToMoreThanNormal
public void testSetFeatureValuesToMoreThanNormal() -
testRemovalOfReferenceByClassificationAttributeProduct
public void testRemovalOfReferenceByClassificationAttributeProduct() -
testTest
public void testTest() -
testSetFeatureValuesToZero
-
testSetModelFVToLessThanJaloFV
-
testSetModelFVToMoreThanJaloFV
-
testGetProductsByFilter
- Throws:
Exception
-
testGetProductsByFilterWithoutFilterAttributes
- Throws:
Exception
-
testGetProductsByFilterWithLimit
- Throws:
Exception
-
test_PLA_8083
public void test_PLA_8083() -
testPLA_8081
- Throws:
ConsistencyCheckException
-
shouldThrowIllegalArgumentExceptionWhenTryingToSetFeaturesForUnsavedProduct
public void shouldThrowIllegalArgumentExceptionWhenTryingToSetFeaturesForUnsavedProduct() -
shouldThrowIllegalArgumentExceptionWhenTryingToReplaceFeaturesForUnsavedProduct
public void shouldThrowIllegalArgumentExceptionWhenTryingToReplaceFeaturesForUnsavedProduct() -
shouldThrowIllegalArgumentExceptionWhenTryingToSetFeatureForUnsavedProduct
public void shouldThrowIllegalArgumentExceptionWhenTryingToSetFeatureForUnsavedProduct() -
shouldThrowIllegalArgumentExceptionWhenTryingToGetFeaturesForUnsavedProduct
public void shouldThrowIllegalArgumentExceptionWhenTryingToGetFeaturesForUnsavedProduct() -
shouldThrowIllegalArgumentExceptionWhenTryingToGetFeatureForUnsavedProduct
public void shouldThrowIllegalArgumentExceptionWhenTryingToGetFeatureForUnsavedProduct() -
shouldProperlyReplaceFeaturesUsingFeatureListFromAnotherProductKeepingSourceUntouched
public void shouldProperlyReplaceFeaturesUsingFeatureListFromAnotherProductKeepingSourceUntouched() -
testSetSingleFeatureWithValues
public void testSetSingleFeatureWithValues()testing the method classificationService.setFeature(prodmodel, feature) in different combinations -
productOnEachLevelShouldContainsOnlyFeaturesWithValuesFromSelfLevel
public void productOnEachLevelShouldContainsOnlyFeaturesWithValuesFromSelfLevel()Test for PLA-10797. -
productInTwoCategoriesShouldBeClassifiedByCorrectClassification
public void productInTwoCategoriesShouldBeClassifiedByCorrectClassification()Test for PLA-11992. It tests following (quite rare and complicated) case:
Classification - Common Class (attributes: common_attribute) +- Classification - Special Class (attributes: special_attribute) +- Category 1 +- Category 2 +- Category 3 +- Category 4 +- Product prodInOneCtg +- Product prodInTwoCtgs +- Category 5 +- prodInTwoCtgsIn above structure assumption is that
productInTwoCtgshas both: common_class.common_attribute and special_class.special_attribute.
This structure is modelled in
featuresInHierarchy-PLA-11992.csvfile.
-