Class DefaultCommerceCheckoutServiceTest
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceCheckoutServiceTest
-
@UnitTest public class DefaultCommerceCheckoutServiceTest extends java.lang.Object
JUnit test suite forDefaultCommerceCheckoutService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TEST_CURRENCY_ISO
static java.lang.String
TEST_CUSTOMER_UID
static java.lang.String
TEST_PSP
static java.lang.String
TEST_SUBSCRIPTION_ID
-
Constructor Summary
Constructors Constructor Description DefaultCommerceCheckoutServiceTest()
-
Method Summary
-
-
-
Field Detail
-
TEST_PSP
public static final java.lang.String TEST_PSP
- See Also:
- Constant Field Values
-
TEST_SUBSCRIPTION_ID
public static final java.lang.String TEST_SUBSCRIPTION_ID
- See Also:
- Constant Field Values
-
TEST_CURRENCY_ISO
public static final java.lang.String TEST_CURRENCY_ISO
- See Also:
- Constant Field Values
-
TEST_CUSTOMER_UID
public static final java.lang.String TEST_CUSTOMER_UID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetDeliveryAddressNullAddress
public void testSetDeliveryAddressNullAddress()
-
testSetDeliveryAddressNullCart
public void testSetDeliveryAddressNullCart()
-
testSetDeliveryAddress
public void testSetDeliveryAddress()
-
testSetDeliveryAddressAndFlagAsDeliveryAddress
public void testSetDeliveryAddressAndFlagAsDeliveryAddress()
-
testSetDeliveryModeNullCart
public void testSetDeliveryModeNullCart()
-
testSetDeliveryModeNullDeliveryMode
public void testSetDeliveryModeNullDeliveryMode()
-
testSetDeliveryMode
public void testSetDeliveryMode()
-
testValidateDeliveryModeNullCart
public void testValidateDeliveryModeNullCart()
-
testValidateDeliveryModeInvalid
public void testValidateDeliveryModeInvalid()
-
testValidateDeliveryModeValid
public void testValidateDeliveryModeValid()
-
testSetPaymentInfoNullCart
public void testSetPaymentInfoNullCart()
-
testSetPaymentInfoNullPaymentInfo
public void testSetPaymentInfoNullPaymentInfo()
-
testSetPaymentInfo
public void testSetPaymentInfo()
-
testAuthorizePaymentNullCart
public void testAuthorizePaymentNullCart()
-
testAuthorizePaymentNullPaymentInfo
public void testAuthorizePaymentNullPaymentInfo()
-
testAuthorizePaymentNoSubscriptionId
public void testAuthorizePaymentNoSubscriptionId()
-
testAuthorizePaymentRejected
public void testAuthorizePaymentRejected()
-
testAuthorizePaymentAccepted
public void testAuthorizePaymentAccepted()
-
testPlaceOrderNullCart
public void testPlaceOrderNullCart() throws InvalidCartException
- Throws:
InvalidCartException
-
testPlaceOrderNotCalculated
public void testPlaceOrderNotCalculated() throws InvalidCartException
- Throws:
InvalidCartException
-
testPlaceOrder
public void testPlaceOrder() throws InvalidCartException, CalculationException
-
testPaymentProvider
public void testPaymentProvider()
-
shouldGetShippingCountries
public void shouldGetShippingCountries()
-
shouldGetAllCountriesIfNoShippingCountries
public void shouldGetAllCountriesIfNoShippingCountries()
-
shouldGetBillingCountries
public void shouldGetBillingCountries()
-
shouldGetAllCountriesIfNoBillingCountries
public void shouldGetAllCountriesIfNoBillingCountries()
-
shouldGetCountries
public void shouldGetCountries()
-
-