Class DefaultCartLoaderStrategyTest
- java.lang.Object
-
- de.hybris.platform.commercewebservicescommons.strategies.impl.DefaultCartLoaderStrategyTest
-
@UnitTest public class DefaultCartLoaderStrategyTest extends java.lang.Object
Test suite forDefaultCartLoaderStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultCartLoaderStrategyTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp()
-
testEmptyCartId
public void testEmptyCartId() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testNullCartId
public void testNullCartId() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testNoUserInSession
public void testNoUserInSession()
-
testNoBaseSiteInSession
public void testNoBaseSiteInSession()
-
testFailWhenNonCustomerUserAccessingCart
public void testFailWhenNonCustomerUserAccessingCart()
-
testAnonymousUserCurrentCart
public void testAnonymousUserCurrentCart()
-
testAnonymousUser
public void testAnonymousUser() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testAnonymousUserRestorationFailed
public void testAnonymousUserRestorationFailed() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testValidateBaseSiteFromLoadedCart
public void testValidateBaseSiteFromLoadedCart() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testValidateBaseSiteFromLoadedCartMismatch
public void testValidateBaseSiteFromLoadedCartMismatch() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testValidateBaseSiteFromLoadedCartMismatchWhenCustomer
public void testValidateBaseSiteFromLoadedCartMismatchWhenCustomer() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testAnonymousUserCartNotFound
public void testAnonymousUserCartNotFound() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUserCurrentCart
public void testCustomerUserCurrentCart() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUserCurrentCartRestorationFailed
public void testCustomerUserCurrentCartRestorationFailed() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUserCurrentCartNotFound
public void testCustomerUserCurrentCartNotFound() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUser
public void testCustomerUser() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUserRestorationFailed
public void testCustomerUserRestorationFailed() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUserCartNotFound
public void testCustomerUserCartNotFound() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testFailWithErrorWhenAnonymousCartExpired
public void testFailWithErrorWhenAnonymousCartExpired() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testFailWithErrorWhenCartExpired
public void testFailWithErrorWhenCartExpired() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testApplyCurrencyToCartAndRecalculate
@Deprecated(since="2011", forRemoval=true) public void testApplyCurrencyToCartAndRecalculate() throws CalculationExceptionDeprecated, for removal: This API element is subject to removal in a future version.not used- Throws:
CalculationException
-
testApplyCurrencyToCartAndRecalculateWithException
@Deprecated(since="2011", forRemoval=true) public void testApplyCurrencyToCartAndRecalculateWithException() throws CalculationExceptionDeprecated, for removal: This API element is subject to removal in a future version.not used- Throws:
CalculationException
-
testApplyCurrencyToCartAndNoRecalculate
@Deprecated(since="2011", forRemoval=true) public void testApplyCurrencyToCartAndNoRecalculate() throws CalculationExceptionDeprecated, for removal: This API element is subject to removal in a future version.not used- Throws:
CalculationException
-
testRestoreWhenCartWithDifferentCurrency
public void testRestoreWhenCartWithDifferentCurrency() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testNoRestoreWhenCartWithTheSameCurrency
public void testNoRestoreWhenCartWithTheSameCurrency() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
-