Related to issue 39617: TestUtils declared as public to be used by AWO tests
authorVíctor Martínez Romanos <victor.martinez@openbravo.com>
Tue, 13 Nov 2018 18:11:23 +0100
changeset 34968 c24eed29cc3d
parent 34967 af52c7d01edc
child 34969 75a160f452b7
Related to issue 39617: TestUtils declared as public to be used by AWO tests
src-test/src/org/openbravo/test/materialMgmt/invoiceFromShipment/TestUtils.java
--- a/src-test/src/org/openbravo/test/materialMgmt/invoiceFromShipment/TestUtils.java	Mon Nov 12 19:38:38 2018 +0100
+++ b/src-test/src/org/openbravo/test/materialMgmt/invoiceFromShipment/TestUtils.java	Tue Nov 13 18:11:23 2018 +0100
@@ -39,7 +39,7 @@
 import org.openbravo.model.pricing.pricelist.ProductPrice;
 import org.openbravo.service.db.CallStoredProcedure;
 
-class TestUtils {
+public class TestUtils {
 
   private static final String COMPLETE_ACTION = "CO";
   private static final String DRAFT_STATUS = "DR";
@@ -106,7 +106,7 @@
    *          new Order (a clone of the original one)
    * @return A new Order Line clone based on the original one
    */
-  static Order cloneOrder(final String orderId, final String docNo) {
+  public static Order cloneOrder(final String orderId, final String docNo) {
     final Order oldOrder = OBDal.getInstance().get(Order.class, orderId);
     final Order newOrder = (Order) DalUtil.copy(oldOrder, false);
     int numberOfOrdersWithSameDocNo = getNumberOfOrders(docNo) + 1;
@@ -155,7 +155,7 @@
    *          new Order (a clone of the original one)
    * @return A new Order Line clone based on the original one
    */
-  static OrderLine cloneOrderLine(final OrderLine oldLine, final Order newOrder) {
+  public static OrderLine cloneOrderLine(final OrderLine oldLine, final Order newOrder) {
 
     // Skip discount lines
     if (oldLine.getOrderDiscount() != null) {
@@ -288,7 +288,7 @@
    *          The Invoice.
    * @throws Exception
    */
-  static void processInvoice(final Invoice invoice) throws Exception {
+  public static void processInvoice(final Invoice invoice) throws Exception {
     if (invoice != null) {
       final List<Object> parameters = new ArrayList<>();
       parameters.add(null); // Process Instance parameter