Class OrderCodePatternTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.order.strategies.OrderCodePatternTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRetrieves the session cart with service layer, calls the placeOrder for the cart, and get the first order code.Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
NUMERIC
- See Also:
-
KEYGEN_ORDER_CODE_TYPE
- See Also:
-
KEYGEN_ORDER_CODE_DIGITS
- See Also:
-
KEYGEN_ORDER_CODE_TEMPLATE
- See Also:
-
-
Constructor Details
-
OrderCodePatternTest
public OrderCodePatternTest()
-
-
Method Details
-
testOrderCode
Retrieves the session cart with service layer, calls the placeOrder for the cart, and get the first order code. Retrieves another cart within jalo session, converts it the model, also calls the placeOrder for it, and get the second order code. Compare the pattern of these two codes, and check they have the same length and pattern. For the pattern, the test is to check if they begin with the same code except the last two characters.- Throws:
Exception
-