Class DefaultClassificationServiceIntegrationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class DefaultClassificationServiceIntegrationTest extends ServicelayerTransactionalTest
  • Constructor Details

    • DefaultClassificationServiceIntegrationTest

      public DefaultClassificationServiceIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      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

      public void testSetFeatureValuesToZero(String identifier)
    • testSetModelFVToLessThanJaloFV

      public void testSetModelFVToLessThanJaloFV(String identifier)
    • testSetModelFVToMoreThanJaloFV

      public void testSetModelFVToMoreThanJaloFV(String identifier)
    • testGetProductsByFilter

      public void testGetProductsByFilter() throws Exception
      Throws:
      Exception
    • testGetProductsByFilterWithoutFilterAttributes

      public void testGetProductsByFilterWithoutFilterAttributes() throws Exception
      Throws:
      Exception
    • testGetProductsByFilterWithLimit

      public void testGetProductsByFilterWithLimit() throws Exception
      Throws:
      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
                              +- prodInTwoCtgs
       

      In above structure assumption is that productInTwoCtgs has both: common_class.common_attribute and special_class.special_attribute.

      This structure is modelled in featuresInHierarchy-PLA-11992.csv file.