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() throws javax.servlet.ServletException, java.io.IOException- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
testNoBaseSiteInSession
public void testNoBaseSiteInSession() throws javax.servlet.ServletException, java.io.IOException- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
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()
-
testCustomerUserCurrentCart
public void testCustomerUserCurrentCart() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUserCurrentCartRestorationFailed
public void testCustomerUserCurrentCartRestorationFailed() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUserCurrentCartNotFound
public void testCustomerUserCurrentCartNotFound()
-
testCustomerUser
public void testCustomerUser() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUserRestorationFailed
public void testCustomerUserRestorationFailed() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCustomerUserCartNotFound
public void testCustomerUserCartNotFound()
-
testFailWithErrorWhenAnonymousCartExpired
public void testFailWithErrorWhenAnonymousCartExpired()
-
testFailWithErrorWhenCartExpired
public void testFailWithErrorWhenCartExpired()
-
testApplyCurrencyToCartAndRecalculate
public void testApplyCurrencyToCartAndRecalculate() throws CalculationException- Throws:
CalculationException
-
testApplyCurrencyToCartAndRecalculateWithException
public void testApplyCurrencyToCartAndRecalculateWithException() throws CalculationException- Throws:
CalculationException
-
testApplyCurrencyToCartAndNoRecalculate
public void testApplyCurrencyToCartAndNoRecalculate() throws CalculationException- Throws:
CalculationException
-
-