Class DefaultClassificationSystemServiceTest
java.lang.Object
de.hybris.platform.classification.impl.DefaultClassificationSystemServiceTest
Mock test for the
DefaultClassificationSystemService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidChecks that anAmbiguousIdentifierExceptionis thrown whenever two existing ClassificationSystem ID are foundvoidChecks thatDefaultClassificationSystemServiceretrieves the correct ClassificationSystem for an existing ClassificationSystem IDvoidChecks that anUnknownIdentifierExceptionis thrown whenever a non existing ClassificationSystem ID is usedvoidChecks that anAmbiguousIdentifierExceptionis thrown whenever two existing ClassificationSystem ID are foundvoidChecks thatDefaultClassificationSystemServiceretrieves the correct ClassificationSystemVersion for an existing ClassificationSystem ID and a systemVersionvoidChecks that anIllegalArgumentExceptionis thrown whenever a null is used as an ID or as a system versionvoidChecks that anUnknownIdentifierExceptionis thrown whenever a non existing ClassificationSystem ID is used or a non existing system versionvoidChecks that anIllegalArgumentExceptionis thrown whenever a null is used as an IDvoidvoidvoidvoid
-
Constructor Details
-
DefaultClassificationSystemServiceTest
public DefaultClassificationSystemServiceTest()
-
-
Method Details
-
setUp
public void setUp() -
testGetClassForCode
public void testGetClassForCode() -
testGetClassForCodeWithIllegalArgumentException
public void testGetClassForCodeWithIllegalArgumentException() -
testGetClassForCodeWithUnknownIdentifierException
public void testGetClassForCodeWithUnknownIdentifierException() -
testGetClassForCodeWithAmbiguousIdentifierException
public void testGetClassForCodeWithAmbiguousIdentifierException() -
testGetAttributeForCode
public void testGetAttributeForCode() -
testGetAttributeForCodeWithIllegalArgumentException
public void testGetAttributeForCodeWithIllegalArgumentException() -
testGetAttributeForCodeWithUnknownIdentifierException
public void testGetAttributeForCodeWithUnknownIdentifierException() -
testGetAttributeForCodeWithAmbiguousIdentifierException
public void testGetAttributeForCodeWithAmbiguousIdentifierException() -
testGetAttributeValueForCode
public void testGetAttributeValueForCode() -
testGetAttributeValueForCodeWithIllegalArgumentException
public void testGetAttributeValueForCodeWithIllegalArgumentException() -
testGetAttributeValueForCodeWithUnknownIdentifierException
public void testGetAttributeValueForCodeWithUnknownIdentifierException() -
testGetAttributeValueForCodeWithAmbiguousIdentifierException
public void testGetAttributeValueForCodeWithAmbiguousIdentifierException() -
testGetAttributeUnitForCode
public void testGetAttributeUnitForCode() -
testGetAttributeUnitForCodeWithIllegalArgumentException
public void testGetAttributeUnitForCodeWithIllegalArgumentException() -
testGetAttributeUnitForCodeWithUnknownIdentifierException
public void testGetAttributeUnitForCodeWithUnknownIdentifierException() -
testGetAttributeUnitForCodeWithAmbiguousIdentifierException
public void testGetAttributeUnitForCodeWithAmbiguousIdentifierException() -
testGetAttributeUnitsForSystemVersion
public void testGetAttributeUnitsForSystemVersion() -
testGetAttributeUnitsForSystemVersionWithIllegalArgumentException
public void testGetAttributeUnitsForSystemVersionWithIllegalArgumentException() -
testGetUnitsOfTypeForSystemVersion
public void testGetUnitsOfTypeForSystemVersion() -
testGetUnitsOfTypeForSystemVersionWithIllegalArgumentException
public void testGetUnitsOfTypeForSystemVersionWithIllegalArgumentException() -
testGetConvertibleUnits
public void testGetConvertibleUnits() -
testGetConvertibleUnitsWithIllegalArgumentException
public void testGetConvertibleUnitsWithIllegalArgumentException() -
testGetUnitTypesForSystemVersion
public void testGetUnitTypesForSystemVersion() -
testGetUnitTypesForSystemVersionWithIllegalArgumentException
public void testGetUnitTypesForSystemVersionWithIllegalArgumentException() -
testGetRootClassesForSystemVersion
public void testGetRootClassesForSystemVersion() -
testGetRootClassesForSystemVersionWithIllegalArgumentException
public void testGetRootClassesForSystemVersionWithIllegalArgumentException() -
testGetSystemVersionWithIlegalArgumentException
public void testGetSystemVersionWithIlegalArgumentException()Checks that anIllegalArgumentExceptionis thrown whenever a null is used as an ID or as a system version -
testGetSystemVersionWithUnknownIdentifierException
public void testGetSystemVersionWithUnknownIdentifierException()Checks that anUnknownIdentifierExceptionis thrown whenever a non existing ClassificationSystem ID is used or a non existing system version -
testGetSystemVersionWithAmbiguousIdentifierException
public void testGetSystemVersionWithAmbiguousIdentifierException()Checks that anAmbiguousIdentifierExceptionis thrown whenever two existing ClassificationSystem ID are found -
testGetSystemVersionWithExistingClassificationsSystemVersion
public void testGetSystemVersionWithExistingClassificationsSystemVersion()Checks thatDefaultClassificationSystemServiceretrieves the correct ClassificationSystemVersion for an existing ClassificationSystem ID and a systemVersion -
testGetSystemWithIllegalArgumentException
public void testGetSystemWithIllegalArgumentException()Checks that anIllegalArgumentExceptionis thrown whenever a null is used as an ID -
testGetSystemForIdWithUnknownIdentifierException
public void testGetSystemForIdWithUnknownIdentifierException()Checks that anUnknownIdentifierExceptionis thrown whenever a non existing ClassificationSystem ID is used -
testgetSystemForIdWithAmbiguousIdentifierException
public void testgetSystemForIdWithAmbiguousIdentifierException()Checks that anAmbiguousIdentifierExceptionis thrown whenever two existing ClassificationSystem ID are found -
testGetSystemForIdWithExistingId
public void testGetSystemForIdWithExistingId()Checks thatDefaultClassificationSystemServiceretrieves the correct ClassificationSystem for an existing ClassificationSystem ID
-