Class TestUtils


  • public class TestUtils
    extends Object
    • Constructor Detail

      • TestUtils

        public TestUtils()
    • Method Detail

      • cloneOrder

        public static Order cloneOrder​(String orderId,
                                       String docNo)
        Returns a new Order Line based on the given one. It is a clone of the first one but without being invoiced or delivered
        Returns:
        A new Order Line clone based on the original one
      • cloneOrderLine

        public static OrderLine cloneOrderLine​(OrderLine oldLine,
                                               Order newOrder)
        Returns a new Order Line based on the given one. It is a clone of the first one but without being invoiced or delivered
        Parameters:
        oldLine - Order Line to be cloned
        newOrder - new Order (a clone of the original one)
        Returns:
        A new Order Line clone based on the original one
      • processInvoice

        public static void processInvoice​(Invoice invoice)
                                   throws Exception
        Calls the C_INVOICE_POST stored procedure
        Parameters:
        invoice - The Invoice.
        Throws:
        Exception