[ https://issues.apache.org/jira/browse/OFBIZ-12453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17458360#comment-17458360 ]
Pierre Smits commented on OFBIZ-12453: -------------------------------------- Using the test with following in code: {code:java} void testInvoicePerShipmentSetFalse() { /* Test Invoice Per Shipment Step 1) Set create.invoice.per.shipment=N in accounting.properties file. Step 2) Create order and approve order. Step 3) Pack Shipment For Ship Group. Step 4) Check invoice should not created. */ //UtilProperties.setPropertyValueInMemory("accounting", "create.invoice.per.shipment", "N") //logInfo("===== >>> Set Accounting.properties / create.invoice.per.shipment = N") List invoices = testInvoicePerShipment("GZ-1000", "N") assert UtilValidate.isEmpty(invoices) } {code} results in: {code:java} assert ServiceUtil.isSuccess(serviceResult) | | false ['shipmentId':'EMPTY', 'errorMessage':'No items currently set to be shipped. Cannot complete!', 'responseMessage':'error'] Assertion failed: assert ServiceUtil.isSuccess(serviceResult) | | false ['shipmentId':'EMPTY', 'errorMessage':'No items currently set to be shipped. Cannot complete!', 'responseMessage':'error'] at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:415) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:670) at org.apache.ofbiz.accounting.InvoicePerShipmentTests.testInvoicePerShipment(InvoicePerShipmentTests.groovy:137) at org.apache.ofbiz.accounting.InvoicePerShipmentTests.testInvoicePerShipmentSetFalse(InvoicePerShipmentTests.groovy:154) at org.apache.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:90) at org.apache.ofbiz.base.container.ContainerLoader.startLoadedContainers(ContainerLoader.java:153) at org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:77) at org.apache.ofbiz.base.start.StartupControlPanel.loadContainers(StartupControlPanel.java:146) at org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:70) at org.apache.ofbiz.base.start.Start.main(Start.java:89) {code} > testInvoicePerShipmentSetFalse work with runtime configuration data > ------------------------------------------------------------------- > > Key: OFBIZ-12453 > URL: https://issues.apache.org/jira/browse/OFBIZ-12453 > Project: OFBiz > Issue Type: Improvement > Components: accounting > Affects Versions: Trunk > Reporter: Pierre Smits > Priority: Major > Labels: integration-test, test-failure > > The testInvoicePerShipmentSetFalse fails when the following is loaded into > the SystemProperty table and the test is executed. > {code:java} > <SystemProperty systemResourceId="accounting" > systemPropertyId="create.invoice.per.shipment" > systemPropertyValue="Y" > description="create invoice per shipment. Options: = Y (Invoice per > shipment), N (Invoice per order)"/> {code} > See > https://github.com/apache/ofbiz-framework/blob/trunk/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/InvoicePerShipmentTests.groovy -- This message was sent by Atlassian Jira (v8.20.1#820001)