Enum SalesDocumentTestHelper

    • Method Detail

      • values

        public static SalesDocumentTestHelper[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SalesDocumentTestHelper c : SalesDocumentTestHelper.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SalesDocumentTestHelper valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • createAndPrepareOrder

        public Order createAndPrepareOrder​(java.lang.String soldToParty)
      • getItemAtPostion

        public Item getItemAtPostion​(ItemList items,
                                     java.lang.Integer posNumber)
      • prepareOrder

        public void prepareOrder​(java.lang.String soldToParty,
                                 Order order)
      • prepareCart

        public void prepareCart​(java.lang.String soldToParty,
                                Basket cart)
      • preparePartnerList

        public PartnerList preparePartnerList​(java.lang.String soldToParty)
      • addItemTo

        public Item addItemTo​(SalesDocument salesDoc,
                              java.lang.String productId,
                              java.lang.String quantity,
                              java.lang.String handle)
      • addItemTo

        public Item addItemTo​(SalesDocument salesDoc,
                              java.lang.String productId,
                              java.lang.String quantity,
                              java.lang.String handle,
                              java.lang.String unit)