Class DefaultVoucherFacadeTest
- java.lang.Object
-
- de.hybris.platform.commercefacades.voucher.impl.DefaultVoucherFacadeTest
-
@UnitTest public class DefaultVoucherFacadeTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultVoucherFacadeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestApplyRestrictedVoucherFail()voidtestApplyVoucher()voidtestApplyVoucherFail()voidtestApplyVoucherForNotExistingVoucher()voidtestApplyVoucherWhenTotalPriceExceeded()voidtestApplyVoucherWithNullParam()voidtestCheckVoucherCode()voidtestGetVoucher()voidtestGetVoucherForNotExistingVoucher()voidtestGetVouchersForCart()voidtestGetVoucherWithNullParam()voidtestReleaseVoucher()voidtestReleaseVoucherForNotExistingVoucher()voidtestReleaseVoucherWithNullParam()
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCheckVoucherCode
public void testCheckVoucherCode()
-
testGetVoucher
public void testGetVoucher() throws VoucherOperationException- Throws:
VoucherOperationException
-
testGetVoucherForNotExistingVoucher
public void testGetVoucherForNotExistingVoucher() throws VoucherOperationException- Throws:
VoucherOperationException
-
testGetVoucherWithNullParam
public void testGetVoucherWithNullParam() throws VoucherOperationException- Throws:
VoucherOperationException
-
testGetVouchersForCart
public void testGetVouchersForCart()
-
testApplyVoucher
public void testApplyVoucher() throws VoucherOperationException, JaloPriceFactoryException
-
testApplyVoucherFail
public void testApplyVoucherFail() throws JaloPriceFactoryException, VoucherOperationException
-
testApplyRestrictedVoucherFail
public void testApplyRestrictedVoucherFail() throws JaloPriceFactoryException, VoucherOperationException
-
testApplyVoucherWhenTotalPriceExceeded
public void testApplyVoucherWhenTotalPriceExceeded() throws JaloPriceFactoryException, VoucherOperationException
-
testApplyVoucherWithNullParam
public void testApplyVoucherWithNullParam() throws VoucherOperationException- Throws:
VoucherOperationException
-
testApplyVoucherForNotExistingVoucher
public void testApplyVoucherForNotExistingVoucher() throws VoucherOperationException- Throws:
VoucherOperationException
-
testReleaseVoucher
public void testReleaseVoucher() throws VoucherOperationException, JaloPriceFactoryException
-
testReleaseVoucherWithNullParam
public void testReleaseVoucherWithNullParam() throws VoucherOperationException- Throws:
VoucherOperationException
-
testReleaseVoucherForNotExistingVoucher
public void testReleaseVoucherForNotExistingVoucher() throws VoucherOperationException- Throws:
VoucherOperationException
-
-