Author: mbrohl
Date: Sat Dec 16 13:36:11 2017 New Revision: 1818398 URL: http://svn.apache.org/viewvc?rev=1818398&view=rev Log: Improved: General refactoring and code improvements, package org.apache.ofbiz.product.test. (OFBIZ-10076) Thanks Julian Leichert for reporting and providing the patches. Modified: ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/InventoryItemTransferTest.java ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/StockMovesTest.java Modified: ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/InventoryItemTransferTest.java URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/InventoryItemTransferTest.java?rev=1818398&r1=1818397&r2=1818398&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/InventoryItemTransferTest.java (original) +++ ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/InventoryItemTransferTest.java Sat Dec 16 13:36:11 2017 @@ -49,7 +49,7 @@ public class InventoryItemTransferTest e public void testCreateInventoryItemsTransfer() throws Exception { // create - Map<String, Object> ctx = new HashMap<String, Object>(); + Map<String, Object> ctx = new HashMap<>(); String inventoryItemId = "9005"; ctx.put("inventoryItemId", inventoryItemId); ctx.put("statusId", "IXF_REQUESTED"); @@ -63,7 +63,7 @@ public class InventoryItemTransferTest e assertNotNull(inventoryTransferId); // transfer - ctx = new HashMap<String, Object>(); + ctx = new HashMap<>(); ctx.put("inventoryTransferId", getInventoryTransferId()); ctx.put("inventoryItemId", inventoryItemId); ctx.put("statusId", "IXF_COMPLETE"); Modified: ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/StockMovesTest.java URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/StockMovesTest.java?rev=1818398&r1=1818397&r2=1818398&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/StockMovesTest.java (original) +++ ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/test/StockMovesTest.java Sat Dec 16 13:36:11 2017 @@ -21,7 +21,6 @@ package org.apache.ofbiz.product.test; import java.math.BigDecimal; import java.util.HashMap; -import java.util.LinkedList; import java.util.List; import java.util.Map; @@ -51,7 +50,7 @@ public class StockMovesTest extends OFBi } public void testStockMoves() throws Exception { - Map<String, Object> fsmnCtx = new HashMap<String, Object>(); + Map<String, Object> fsmnCtx = new HashMap<>(); Map<?,?> stockMoveHandled = null; List<?> warningList; @@ -69,7 +68,7 @@ public class StockMovesTest extends OFBi warningList = UtilGenerics.checkList(respMap2.get("warningMessageList")); assertNull(warningList); - Map<String, Object> ppsmCtx = new HashMap<String, Object>(); + Map<String, Object> ppsmCtx = new HashMap<>(); ppsmCtx.put("productId", "GZ-2644"); ppsmCtx.put("facilityId", "WebStoreWarehouse"); ppsmCtx.put("locationSeqId","TLTLTLUL01"); |
Free forum by Nabble | Edit this page |