Package de.hybris.platform.order
Class CartServiceTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidTests appending cloned cart entries of source cart to the target cartvoidTest checks currency information in cart after currency change.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidTest adds into cart one product and change currency of environment.voidvoidvoidMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
CartServiceTest
public CartServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testAddToCart
- Throws:
InvalidCartException
-
testGetSessionCart
public void testGetSessionCart() -
testGetSessionCartInLocalView
public void testGetSessionCartInLocalView() -
testGetSessionCartWhenJaloSessionUpdates
public void testGetSessionCartWhenJaloSessionUpdates() -
testRemoveSessionCart
public void testRemoveSessionCart() -
testSetSessionCart
public void testSetSessionCart() -
testChangeQuantity
- Throws:
InvalidCartException
-
testSetCartEntryQuantityToZero
- Throws:
InvalidCartException
-
testChangeSomeQuantitiesInCartOldStyle
- Throws:
InvalidCartException
-
testChangeSomeQuantitiesInCart
-
testCartAfterChangeCurrency
Test checks currency information in cart after currency change. When currency has been changed cart is recalculated.- Throws:
InvalidCartException
-
testRefreshCartAfterChangeCurrency
Test adds into cart one product and change currency of environment. Currency is changed to first currency available in system, different than currennt currency.
After currency change cart id loaded again and test checks if cart and cart items have correct currency settings.- Throws:
InvalidCartException
-
testAppendToCart
public void testAppendToCart()Tests appending cloned cart entries of source cart to the target cart -
testCustomCartTypeCartService
public void testCustomCartTypeCartService() -
testCustomCartTypeCartFactory
public void testCustomCartTypeCartFactory() -
testChangeCurrentCartUser
public void testChangeCurrentCartUser() -
testCreateCartFromQuote
public void testCreateCartFromQuote()
-