Class DefaultCouponFacadeTest
- java.lang.Object
-
- de.hybris.platform.couponfacades.facades.impl.DefaultCouponFacadeTest
-
@UnitTest public class DefaultCouponFacadeTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOUPON_CODEstatic java.lang.StringCOUPON_ID
-
Constructor Summary
Constructors Constructor Description DefaultCouponFacadeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestApplyVoucher()voidtestApplyVoucherNoCart()voidtestApplyVoucherNullArg()voidtestCheckVoucherCode()voidtestCheckVoucherCodeNullArg()voidtestGetCouponDetails()voidtestGetCouponDetailsNullArg()voidtestGetVouchersForCart()voidtestGetVouchersForCartEmptyList()voidtestGetVouchersForCartNoCart()voidtestReleaseVoucher()voidtestReleaseVoucherNoCart()voidtestReleaseVoucherNullCode()
-
-
-
Field Detail
-
COUPON_CODE
public static final java.lang.String COUPON_CODE
- See Also:
- Constant Field Values
-
COUPON_ID
public static final java.lang.String COUPON_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp()
-
testApplyVoucherNullArg
public void testApplyVoucherNullArg() throws VoucherOperationException- Throws:
VoucherOperationException
-
testApplyVoucherNoCart
public void testApplyVoucherNoCart() throws VoucherOperationException- Throws:
VoucherOperationException
-
testApplyVoucher
public void testApplyVoucher() throws VoucherOperationException- Throws:
VoucherOperationException
-
testReleaseVoucherNullCode
public void testReleaseVoucherNullCode() throws VoucherOperationException- Throws:
VoucherOperationException
-
testReleaseVoucherNoCart
public void testReleaseVoucherNoCart() throws VoucherOperationException- Throws:
VoucherOperationException
-
testReleaseVoucher
public void testReleaseVoucher() throws VoucherOperationException- Throws:
VoucherOperationException
-
testGetVouchersForCartNoCart
public void testGetVouchersForCartNoCart()
-
testGetVouchersForCartEmptyList
public void testGetVouchersForCartEmptyList()
-
testGetVouchersForCart
public void testGetVouchersForCart()
-
testCheckVoucherCodeNullArg
public void testCheckVoucherCodeNullArg()
-
testCheckVoucherCode
public void testCheckVoucherCode()
-
testGetCouponDetailsNullArg
public void testGetCouponDetailsNullArg() throws VoucherOperationException- Throws:
VoucherOperationException
-
testGetCouponDetails
public void testGetCouponDetails() throws VoucherOperationException- Throws:
VoucherOperationException
-
-