Class DefaultCategoryServiceTest

    • Constructor Detail

      • DefaultCategoryServiceTest

        public DefaultCategoryServiceTest()
    • Method Detail

      • setUp

        public void setUp()
      • shouldThrowIllegalArgumentExceptionWhenGettingAllSubcategoriesAndCategoryIsNull

        public void shouldThrowIllegalArgumentExceptionWhenGettingAllSubcategoriesAndCategoryIsNull()
      • shouldThrowIllegalArgumentExceptionWhenGettingAllSupercategoriesAndCategoryIsNull

        public void shouldThrowIllegalArgumentExceptionWhenGettingAllSupercategoriesAndCategoryIsNull()
      • shouldGetAllSubcategoriesForCategoryRecursively

        public void shouldGetAllSubcategoriesForCategoryRecursively()
      • shouldGetAllSupercategoriesForCategoryRecursively

        public void shouldGetAllSupercategoriesForCategoryRecursively()
      • testGetCategoryForCode

        public void testGetCategoryForCode()
      • testGetCategory

        public void testGetCategory()
      • testGetPathForCategory

        public void testGetPathForCategory()
      • testGetPath

        public void testGetPath()
      • shouldDisableSubcategoryRemovalCheck

        public void shouldDisableSubcategoryRemovalCheck()
      • shouldEnableSubcategoryRemovalCheck

        public void shouldEnableSubcategoryRemovalCheck()
      • shouldReturnTrueWhenSubcategoryRemovalCheckIsSetOnTrueInTheSession

        public void shouldReturnTrueWhenSubcategoryRemovalCheckIsSetOnTrueInTheSession()
      • shouldReturnFalseWhenSubcategoryRemovalCheckIsSetOnFalseInTheSession

        public void shouldReturnFalseWhenSubcategoryRemovalCheckIsSetOnFalseInTheSession()
      • shouldReturnFalseWhenSubcategoryRemovalCheckIsNullInTheSession

        public void shouldReturnFalseWhenSubcategoryRemovalCheckIsNullInTheSession()
      • shouldReturnFalseWhenSubcategoryRemovalCheckIsSomeWeirdValueInTheSession

        public void shouldReturnFalseWhenSubcategoryRemovalCheckIsSomeWeirdValueInTheSession()