@UnitTest public class DefaultCouponCodeGenerationServiceUnitTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultCouponCodeGenerationServiceUnitTest() |
public DefaultCouponCodeGenerationServiceUnitTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateAlphabet()
public void testCreateAlphabetWhenCodeSeparatorIsPartOfAlphabet()
public void testIsValidCodeSeparatorNull()
public void testIsValidCodeSeparatorLengthMoreThen1()
public void testIsValidCodeSeparatorWrongChar()
public void testIsValidCodeSeparatorOk()
public void testWrongLengths()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testExtractCouponPrefix()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testPrefixGeneration()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionprotected java.lang.String generateCouponLengthAndDelimitersYxZ(int parts,
int lengths,
java.lang.String separator)
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x8()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters2x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters8x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x12()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters2x6()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters3x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x3()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters6x2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters12x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x16()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters2x8()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters8x2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters16x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x20()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters2x10()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x5()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters5x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters10x2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters20x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x24()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters2x12()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters3x8()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x6()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters6x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters8x3()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters12x2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters24x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x28()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters2x14()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x7()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters7x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters14x2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters28x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x32()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters2x16()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x8()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters8x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters16x2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters32x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x36()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters2x18()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters3x12()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x9()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters6x6()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters9x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters12x3()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters18x2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters36x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters1x40()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters2x20()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters4x10()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters5x8()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters8x5()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters10x4()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters20x2()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateAndVerifyCouponLengthAndDelimiters40x1()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionpublic void testGenerateCouponCodes()
throws CouponCodeGenerationException
CouponCodeGenerationExceptionprotected java.lang.String text(int length,
char character)
Copyright © 2018 SAP SE. All Rights Reserved.