@UnitTest public class DefaultCouponCodeClearTextGenerationStrategyUnitTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultCouponCodeClearTextGenerationStrategyUnitTest() |
public DefaultCouponCodeClearTextGenerationStrategyUnitTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testWrongInputLengths()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndInverseOperationForSpecialCases()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionprotected void doTestGenerateAndInverseOperation(long start,
long totalRuns,
int clearTextLength)
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testClearTextGenerationFailsWhenLimitIsReachedLength2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testClearTextGenerationFailsWhenLimitIsReachedLength4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testClearTextGenerationFailsWhenLimitIsReachedLength6()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testClearTextGenerationFailsWhenLimitIsReachedLength8()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testClearTextGenerationSucceedsBeforeLimitIsReachedLength2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testClearTextGenerationSucceedsBeforeLimitIsReachedLength4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testClearTextGenerationSucceedsBeforeLimitIsReachedLength6()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testClearTextGenerationSucceedsBeforeLimitIsReachedLength8()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionprotected void doTestClearTextGeneration(long couponCodeNumber,
int length)
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testCodeForLength2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testCodeForLength4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testCodeForLength6()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testCodeForLength8()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testNoClearTextDuplicatesLength2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testNoClearTextDuplicatesLength4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testNoClearTextDuplicatesLength6()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testNoClearTextDuplicatesLength8()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionprotected void checkForDuplicateClearTextWithLength(int length,
long seed)
throws CouponCodeGenerationException
CouponCodeGenerationExceptionCopyright © 2018 SAP SE. All Rights Reserved.