Class OrderCodePatternTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class OrderCodePatternTest extends ServicelayerBaseTest
  • Field Details

  • Constructor Details

    • OrderCodePatternTest

      public OrderCodePatternTest()
  • Method Details

    • testOrderCode

      public void testOrderCode() throws Exception
      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