details:   https://code.openbravo.com/erp/devel/pi/rev/c24eed29cc3d
changeset: 34959:c24eed29cc3d
user:      Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
date:      Tue Nov 13 18:11:23 2018 +0100
summary:   Related to issue 39617: TestUtils declared as public to be used by 
AWO tests

diffstat:

 
src-test/src/org/openbravo/test/materialMgmt/invoiceFromShipment/TestUtils.java 
|  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r af52c7d01edc -r c24eed29cc3d 
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


_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to