Class DefaultClassificationServiceIntegrationTest

    • Constructor Detail

      • DefaultClassificationServiceIntegrationTest

        public DefaultClassificationServiceIntegrationTest()
    • 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()
      • 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.