Class OrderCodePatternTest

    • Field Detail

      • KEYGEN_ORDER_CODE_TYPE

        public static final java.lang.String KEYGEN_ORDER_CODE_TYPE
        See Also:
        Constant Field Values
      • KEYGEN_ORDER_CODE_DIGITS

        public static final java.lang.String KEYGEN_ORDER_CODE_DIGITS
        See Also:
        Constant Field Values
      • KEYGEN_ORDER_CODE_TEMPLATE

        public static final java.lang.String KEYGEN_ORDER_CODE_TEMPLATE
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderCodePatternTest

        public OrderCodePatternTest()
    • Method Detail

      • testOrderCode

        public void testOrderCode()
                           throws java.lang.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:
        java.lang.Exception