Class ProductEntitlementValidatorTest
- java.lang.Object
-
- de.hybris.platform.entitlementservices.interceptor.impl.ProductEntitlementValidatorTest
-
@UnitTest public class ProductEntitlementValidatorTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProductEntitlementValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlocationWithComma()voidlocationWithLeadingSlash()voidlocationWithMissingRegion()voidlocationWithTooManyLevels()voidlocationWithTrailingSlash()voidpathWithTrailingSlash()voidsetUp()voidshouldAcceptUnlimitedDuration()voidshouldAcceptZeroDuration()voidshouldRejectCommasInGeoPath()voidshouldRejectDurationWithoutStartDate()voidshouldRejectNegativeDuration()voidshouldRejectNegativeStartTime()voidshouldRejectPathEndingWithSeparator()voidshouldRejectTimeUnitWithoutStartDate()voidshouldRejectTrailingSlash()voidshouldRejectZeroStartTime()voidtestProductEntitlementValidatorQuantityIsMinusOne()voidtestProductEntitlementValidatorQuantityIsNegative()voidtestProductEntitlementValidatorQuantityIsPositive()voidtestProductEntitlementValidatorQuantityIsZero()voidtestProductEntitlementValidatorWithoutUsageUnit()
-
-
-
Method Detail
-
setUp
public void setUp()
-
testProductEntitlementValidatorQuantityIsPositive
public void testProductEntitlementValidatorQuantityIsPositive() throws InterceptorException- Throws:
InterceptorException
-
testProductEntitlementValidatorQuantityIsZero
public void testProductEntitlementValidatorQuantityIsZero() throws InterceptorException- Throws:
InterceptorException
-
testProductEntitlementValidatorQuantityIsMinusOne
public void testProductEntitlementValidatorQuantityIsMinusOne() throws InterceptorException- Throws:
InterceptorException
-
testProductEntitlementValidatorQuantityIsNegative
public void testProductEntitlementValidatorQuantityIsNegative() throws InterceptorException- Throws:
InterceptorException
-
testProductEntitlementValidatorWithoutUsageUnit
public void testProductEntitlementValidatorWithoutUsageUnit() throws InterceptorException- Throws:
InterceptorException
-
shouldRejectTimeUnitWithoutStartDate
public void shouldRejectTimeUnitWithoutStartDate() throws InterceptorException- Throws:
InterceptorException
-
shouldRejectDurationWithoutStartDate
public void shouldRejectDurationWithoutStartDate() throws InterceptorException- Throws:
InterceptorException
-
shouldAcceptZeroDuration
public void shouldAcceptZeroDuration() throws InterceptorException- Throws:
InterceptorException
-
shouldAcceptUnlimitedDuration
public void shouldAcceptUnlimitedDuration() throws InterceptorException- Throws:
InterceptorException
-
shouldRejectPathEndingWithSeparator
public void shouldRejectPathEndingWithSeparator() throws InterceptorException- Throws:
InterceptorException
-
shouldRejectNegativeDuration
public void shouldRejectNegativeDuration() throws InterceptorException- Throws:
InterceptorException
-
shouldRejectZeroStartTime
public void shouldRejectZeroStartTime() throws InterceptorException- Throws:
InterceptorException
-
shouldRejectNegativeStartTime
public void shouldRejectNegativeStartTime() throws InterceptorException- Throws:
InterceptorException
-
shouldRejectCommasInGeoPath
public void shouldRejectCommasInGeoPath() throws InterceptorException- Throws:
InterceptorException
-
shouldRejectTrailingSlash
public void shouldRejectTrailingSlash() throws InterceptorException- Throws:
InterceptorException
-
locationWithTrailingSlash
public void locationWithTrailingSlash() throws InterceptorException- Throws:
InterceptorException
-
locationWithTooManyLevels
public void locationWithTooManyLevels() throws InterceptorException- Throws:
InterceptorException
-
locationWithMissingRegion
public void locationWithMissingRegion() throws InterceptorException- Throws:
InterceptorException
-
locationWithLeadingSlash
public void locationWithLeadingSlash() throws InterceptorException- Throws:
InterceptorException
-
locationWithComma
public void locationWithComma() throws InterceptorException- Throws:
InterceptorException
-
pathWithTrailingSlash
public void pathWithTrailingSlash() throws InterceptorException- Throws:
InterceptorException
-
-