@UnitTest public class DefaultVoucherFacadeTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultVoucherFacadeTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testApplyRestrictedVoucherFail() |
void |
testApplyVoucher() |
void |
testApplyVoucherFail() |
void |
testApplyVoucherForNotExistingVoucher() |
void |
testApplyVoucherWhenTotalPriceExceeded() |
void |
testApplyVoucherWithNullParam() |
void |
testCheckVoucherCode() |
void |
testGetVoucher() |
void |
testGetVoucherForNotExistingVoucher() |
void |
testGetVouchersForCart() |
void |
testGetVoucherWithNullParam() |
void |
testReleaseVoucher() |
void |
testReleaseVoucherForNotExistingVoucher() |
void |
testReleaseVoucherWithNullParam() |
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testCheckVoucherCode()
public void testGetVoucher()
throws VoucherOperationException
VoucherOperationExceptionpublic void testGetVoucherForNotExistingVoucher()
throws VoucherOperationException
VoucherOperationExceptionpublic void testGetVoucherWithNullParam()
throws VoucherOperationException
VoucherOperationExceptionpublic void testGetVouchersForCart()
public void testApplyVoucher()
throws VoucherOperationException,
JaloPriceFactoryException
public void testApplyVoucherFail()
throws JaloPriceFactoryException,
VoucherOperationException
public void testApplyRestrictedVoucherFail()
throws JaloPriceFactoryException,
VoucherOperationException
public void testApplyVoucherWhenTotalPriceExceeded()
throws JaloPriceFactoryException,
VoucherOperationException
public void testApplyVoucherWithNullParam()
throws VoucherOperationException
VoucherOperationExceptionpublic void testApplyVoucherForNotExistingVoucher()
throws VoucherOperationException
VoucherOperationExceptionpublic void testReleaseVoucher()
throws VoucherOperationException,
JaloPriceFactoryException
public void testReleaseVoucherWithNullParam()
throws VoucherOperationException
VoucherOperationExceptionpublic void testReleaseVoucherForNotExistingVoucher()
throws VoucherOperationException
VoucherOperationExceptionCopyright © 2018 SAP SE. All Rights Reserved.