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
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DefaultClassificationServiceIntegrationTest()
-
Method Summary
-
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
-
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
public void testSetFeatureValuesToZero(java.lang.String identifier)
-
testSetModelFVToLessThanJaloFV
public void testSetModelFVToLessThanJaloFV(java.lang.String identifier)
-
testSetModelFVToMoreThanJaloFV
public void testSetModelFVToMoreThanJaloFV(java.lang.String identifier)
-
testGetProductsByFilter
public void testGetProductsByFilter() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetProductsByFilterWithoutFilterAttributes
public void testGetProductsByFilterWithoutFilterAttributes() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetProductsByFilterWithLimit
public void testGetProductsByFilterWithLimit() throws java.lang.Exception- Throws:
java.lang.Exception
-
test_PLA_8083
public void test_PLA_8083()
-
testPLA_8081
public void testPLA_8081() throws ConsistencyCheckException- 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.
-
-