This is an automated email from the ASF dual-hosted git repository.

mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 5a40cc1ee0 OFBIZ-13402 Move test sources from src/main/groovy to 
src/test/groovy
5a40cc1ee0 is described below

commit 5a40cc1ee053a3fb9155b4473f9436a704f2fd3f
Author: toaditi <[email protected]>
AuthorDate: Mon Jun 15 16:57:44 2026 +0530

    OFBIZ-13402 Move test sources from src/main/groovy to src/test/groovy
    
    Move 52 Groovy test files from src/main/groovy to src/test/groovy across
    all active components to prevent test code from being compiled into
    production JAR files and included in release artifacts.
    
    Update build.gradle so the OFBiz integration test runner (ofbiz --test)
    includes the test source set classpath alongside the main classpath,
    ensuring relocated test classes remain discoverable at test runtime.
    
    Also add src/test/groovy to the createPlugin directory scaffold so new
    plugins get the correct layout from the start.
    
    Note: framework/service TestServices.groovy is intentionally NOT moved
    as it is a service implementation, not a test class.
---
 .../ofbiz/accounting/accounting/AutoAcctgAdminTests.groovy     |  0
 .../ofbiz/accounting/accounting/AutoAcctgAgreementTests.groovy |  0
 .../ofbiz/accounting/accounting/AutoAcctgBudgetTests.groovy    |  0
 .../ofbiz/accounting/accounting/AutoAcctgCostTests.groovy      |  0
 .../accounting/accounting/AutoAcctgFinAccountTests.groovy      |  0
 .../accounting/accounting/AutoAcctgFixedAssetTests.groovy      |  0
 .../ofbiz/accounting/accounting/AutoAcctgInvoiceTests.groovy   |  0
 .../ofbiz/accounting/accounting/AutoAcctgLedgerTests.groovy    |  0
 .../accounting/accounting/AutoAcctgPaymentGatewayTests.groovy  |  0
 .../ofbiz/accounting/accounting/AutoAcctgPaymentTests.groovy   |  0
 .../accounting/accounting/AutoAcctgTransPurchaseTests.groovy   |  0
 .../accounting/accounting/AutoAcctgTransSalesTests.groovy      |  0
 .../apache/ofbiz/accounting/accounting/AutoInvoiceTests.groovy |  0
 .../apache/ofbiz/accounting/accounting/AutoPaymentTests.groovy |  0
 .../apache/ofbiz/accounting/accounting/FixedAssetTests.groovy  |  0
 .../ofbiz/accounting/accounting/InvoicePerShipmentTests.groovy |  0
 .../ofbiz/accounting/accounting/PaymentApplicationTests.groovy |  0
 .../org/apache/ofbiz/accounting/accounting/RateTests.groovy    |  0
 .../org/apache/ofbiz/content/content/ContentTests.groovy       |  0
 .../ofbiz/marketing/marketing/test/MarketingTests.groovy       |  0
 .../order/order/test/CustRequestPermissionCheckTests.groovy    |  0
 .../org/apache/ofbiz/order/order/test/CustRequestTests.groovy  |  0
 .../apache/ofbiz/order/order/test/OrderRequirementTests.groovy |  0
 .../org/apache/ofbiz/order/order/test/OrderReturnTests.groovy  |  0
 .../groovy/org/apache/ofbiz/order/order/test/OrderTests.groovy |  0
 .../groovy/org/apache/ofbiz/order/order/test/QuoteTests.groovy |  0
 .../org/apache/ofbiz/order/order/test/ShoppingListTests.groovy |  0
 .../ofbiz/party/party/test/ContactMechWorkerTests.groovy       |  0
 .../org/apache/ofbiz/party/party/test/PartyAddressTests.groovy |  0
 .../ofbiz/party/party/test/PartyCommunicationEventTests.groovy |  0
 .../apache/ofbiz/party/party/test/PartyContactMechTests.groovy |  0
 .../org/apache/ofbiz/party/party/test/PartyMiscTests.groovy    |  0
 .../ofbiz/party/party/test/PartyStatusChangeTests.groovy       |  0
 .../groovy/org/apache/ofbiz/party/party/test/PartyTests.groovy |  0
 .../org/apache/ofbiz/product/product/test/CategoryTests.groovy |  0
 .../org/apache/ofbiz/product/product/test/CostTests.groovy     |  0
 .../apache/ofbiz/product/product/test/GroupOrderTests.groovy   |  0
 .../apache/ofbiz/product/product/test/InventoryTests.groovy    |  0
 .../ofbiz/product/product/test/ProductConfigTests.groovy       |  0
 .../ofbiz/product/product/test/ProductFeatureTypeTests.groovy  |  0
 .../apache/ofbiz/product/product/test/ProductPriceTests.groovy |  0
 .../ofbiz/product/product/test/ProductPromoActionTests.groovy  |  0
 .../ofbiz/product/product/test/ProductPromoCondTests.groovy    |  0
 .../apache/ofbiz/product/product/test/ProductTagTest.groovy    |  0
 .../org/apache/ofbiz/product/product/test/ProductTest.groovy   |  0
 .../org/apache/ofbiz/product/product/test/ProductTests.groovy  |  0
 .../org/apache/ofbiz/product/product/test/ShipmentTests.groovy |  0
 .../ofbiz/shipment/product/test/ShipmentCostTests.groovy       |  0
 build.gradle                                                   | 10 ++++++----
 .../groovy/org/apache/ofbiz/base/test/SimpleTests.groovy       |  0
 .../org/apache/ofbiz/service/test/ServicePurgeTest.groovy      |  0
 .../apache/ofbiz/webapp/test/OfbizPathShortenerTests.groovy    |  0
 52 files changed, 6 insertions(+), 4 deletions(-)

diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgAdminTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgAdminTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgAdminTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgAdminTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgAgreementTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgAgreementTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgAgreementTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgAgreementTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgBudgetTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgBudgetTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgBudgetTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgBudgetTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgCostTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgCostTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgCostTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgCostTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgFinAccountTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgFinAccountTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgFinAccountTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgFinAccountTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgFixedAssetTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgFixedAssetTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgFixedAssetTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgFixedAssetTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgInvoiceTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgInvoiceTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgInvoiceTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgInvoiceTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgLedgerTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgLedgerTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgLedgerTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgLedgerTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgPaymentGatewayTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgPaymentGatewayTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgPaymentGatewayTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgPaymentGatewayTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgPaymentTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgPaymentTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgPaymentTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgPaymentTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgTransPurchaseTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgTransPurchaseTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgTransPurchaseTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgTransPurchaseTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgTransSalesTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgTransSalesTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgTransSalesTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoAcctgTransSalesTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoInvoiceTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoInvoiceTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoInvoiceTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoInvoiceTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoPaymentTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoPaymentTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/AutoPaymentTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/AutoPaymentTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/FixedAssetTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/FixedAssetTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/FixedAssetTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/FixedAssetTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/InvoicePerShipmentTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/InvoicePerShipmentTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/InvoicePerShipmentTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/InvoicePerShipmentTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/PaymentApplicationTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/PaymentApplicationTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/PaymentApplicationTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/PaymentApplicationTests.groovy
diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/RateTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/RateTests.groovy
similarity index 100%
rename from 
applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/accounting/RateTests.groovy
rename to 
applications/accounting/src/test/groovy/org/apache/ofbiz/accounting/accounting/RateTests.groovy
diff --git 
a/applications/content/src/main/groovy/org/apache/ofbiz/content/content/ContentTests.groovy
 
b/applications/content/src/test/groovy/org/apache/ofbiz/content/content/ContentTests.groovy
similarity index 100%
rename from 
applications/content/src/main/groovy/org/apache/ofbiz/content/content/ContentTests.groovy
rename to 
applications/content/src/test/groovy/org/apache/ofbiz/content/content/ContentTests.groovy
diff --git 
a/applications/marketing/src/main/groovy/org/apache/ofbiz/marketing/marketing/test/MarketingTests.groovy
 
b/applications/marketing/src/test/groovy/org/apache/ofbiz/marketing/marketing/test/MarketingTests.groovy
similarity index 100%
rename from 
applications/marketing/src/main/groovy/org/apache/ofbiz/marketing/marketing/test/MarketingTests.groovy
rename to 
applications/marketing/src/test/groovy/org/apache/ofbiz/marketing/marketing/test/MarketingTests.groovy
diff --git 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/CustRequestPermissionCheckTests.groovy
 
b/applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/CustRequestPermissionCheckTests.groovy
similarity index 100%
rename from 
applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/CustRequestPermissionCheckTests.groovy
rename to 
applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/CustRequestPermissionCheckTests.groovy
diff --git 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/CustRequestTests.groovy
 
b/applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/CustRequestTests.groovy
similarity index 100%
rename from 
applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/CustRequestTests.groovy
rename to 
applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/CustRequestTests.groovy
diff --git 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderRequirementTests.groovy
 
b/applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/OrderRequirementTests.groovy
similarity index 100%
rename from 
applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderRequirementTests.groovy
rename to 
applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/OrderRequirementTests.groovy
diff --git 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderReturnTests.groovy
 
b/applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/OrderReturnTests.groovy
similarity index 100%
rename from 
applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderReturnTests.groovy
rename to 
applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/OrderReturnTests.groovy
diff --git 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderTests.groovy
 
b/applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/OrderTests.groovy
similarity index 100%
rename from 
applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderTests.groovy
rename to 
applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/OrderTests.groovy
diff --git 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/QuoteTests.groovy
 
b/applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/QuoteTests.groovy
similarity index 100%
rename from 
applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/QuoteTests.groovy
rename to 
applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/QuoteTests.groovy
diff --git 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/ShoppingListTests.groovy
 
b/applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/ShoppingListTests.groovy
similarity index 100%
rename from 
applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/ShoppingListTests.groovy
rename to 
applications/order/src/test/groovy/org/apache/ofbiz/order/order/test/ShoppingListTests.groovy
diff --git 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/ContactMechWorkerTests.groovy
 
b/applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/ContactMechWorkerTests.groovy
similarity index 100%
rename from 
applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/ContactMechWorkerTests.groovy
rename to 
applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/ContactMechWorkerTests.groovy
diff --git 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyAddressTests.groovy
 
b/applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyAddressTests.groovy
similarity index 100%
rename from 
applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyAddressTests.groovy
rename to 
applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyAddressTests.groovy
diff --git 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyCommunicationEventTests.groovy
 
b/applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyCommunicationEventTests.groovy
similarity index 100%
rename from 
applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyCommunicationEventTests.groovy
rename to 
applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyCommunicationEventTests.groovy
diff --git 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyContactMechTests.groovy
 
b/applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyContactMechTests.groovy
similarity index 100%
rename from 
applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyContactMechTests.groovy
rename to 
applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyContactMechTests.groovy
diff --git 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyMiscTests.groovy
 
b/applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyMiscTests.groovy
similarity index 100%
rename from 
applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyMiscTests.groovy
rename to 
applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyMiscTests.groovy
diff --git 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyStatusChangeTests.groovy
 
b/applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyStatusChangeTests.groovy
similarity index 100%
rename from 
applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyStatusChangeTests.groovy
rename to 
applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyStatusChangeTests.groovy
diff --git 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyTests.groovy
 
b/applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyTests.groovy
similarity index 100%
rename from 
applications/party/src/main/groovy/org/apache/ofbiz/party/party/test/PartyTests.groovy
rename to 
applications/party/src/test/groovy/org/apache/ofbiz/party/party/test/PartyTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/CategoryTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/CategoryTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/CategoryTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/CategoryTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/CostTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/CostTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/CostTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/CostTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/GroupOrderTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/GroupOrderTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/GroupOrderTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/GroupOrderTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/InventoryTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/InventoryTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/InventoryTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/InventoryTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductConfigTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductConfigTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductConfigTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductConfigTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductFeatureTypeTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductFeatureTypeTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductFeatureTypeTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductFeatureTypeTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPriceTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductPriceTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPriceTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductPriceTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPromoActionTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductPromoActionTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPromoActionTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductPromoActionTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPromoCondTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductPromoCondTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPromoCondTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductPromoCondTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductTagTest.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductTagTest.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductTagTest.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductTagTest.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductTest.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductTest.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductTest.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductTest.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ProductTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ShipmentTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ShipmentTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ShipmentTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/product/product/test/ShipmentTests.groovy
diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/shipment/product/test/ShipmentCostTests.groovy
 
b/applications/product/src/test/groovy/org/apache/ofbiz/shipment/product/test/ShipmentCostTests.groovy
similarity index 100%
rename from 
applications/product/src/main/groovy/org/apache/ofbiz/shipment/product/test/ShipmentCostTests.groovy
rename to 
applications/product/src/test/groovy/org/apache/ofbiz/shipment/product/test/ShipmentCostTests.groovy
diff --git a/build.gradle b/build.gradle
index 10b1399663..b3e0e5b1cb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -794,7 +794,7 @@ task createPlugin(group: ofbizPlugin, description: 'create 
a new plugin componen
         def pluginDir = "${pluginsDir}/${pluginId}"
 
         ['config', 'dtd', 'entitydef', 'lib', 'patches/test', 'patches/qa',
-                'patches/production', 'src/main/groovy', 'minilang', 
'servicedef', 'src/main/java', 'src/test/java', 'testdef',
+                'patches/production', 'src/main/groovy', 'minilang', 
'servicedef', 'src/main/java', 'src/test/java', 'src/test/groovy', 'testdef',
                 'widget', "webapp/${webappName}/error", 
"webapp/${webappName}/WEB-INF"].each {
             mkdir pluginDir + '/' + it
         }
@@ -1043,12 +1043,14 @@ tasks.addRule('Pattern: ofbizBackground <Commands>: 
Execute OFBiz startup comman
 def createOfbizCommandTask(taskName, arguments) {
     task(type: JavaExec, dependsOn: classes, taskName) {
         jvmArgs(application.applicationDefaultJvmArgs)
-        classpath = sourceSets.main.runtimeClasspath
-        mainClass = application.mainClass
-        args arguments
         if (taskName ==~ /^ofbiz.*(--test|-t).*/) {
+            classpath = sourceSets.main.runtimeClasspath + 
sourceSets.test.runtimeClasspath
             finalizedBy(createTestReports)
+        } else {
+            classpath = sourceSets.main.runtimeClasspath
         }
+        mainClass = application.mainClass
+        args arguments
     }
 }
 
diff --git 
a/framework/base/src/main/groovy/org/apache/ofbiz/base/test/SimpleTests.groovy 
b/framework/base/src/test/groovy/org/apache/ofbiz/base/test/SimpleTests.groovy
similarity index 100%
rename from 
framework/base/src/main/groovy/org/apache/ofbiz/base/test/SimpleTests.groovy
rename to 
framework/base/src/test/groovy/org/apache/ofbiz/base/test/SimpleTests.groovy
diff --git 
a/framework/service/src/main/groovy/org/apache/ofbiz/service/test/ServicePurgeTest.groovy
 
b/framework/service/src/test/groovy/org/apache/ofbiz/service/test/ServicePurgeTest.groovy
similarity index 100%
rename from 
framework/service/src/main/groovy/org/apache/ofbiz/service/test/ServicePurgeTest.groovy
rename to 
framework/service/src/test/groovy/org/apache/ofbiz/service/test/ServicePurgeTest.groovy
diff --git 
a/framework/webapp/src/main/groovy/org/apache/ofbiz/webapp/test/OfbizPathShortenerTests.groovy
 
b/framework/webapp/src/test/groovy/org/apache/ofbiz/webapp/test/OfbizPathShortenerTests.groovy
similarity index 100%
rename from 
framework/webapp/src/main/groovy/org/apache/ofbiz/webapp/test/OfbizPathShortenerTests.groovy
rename to 
framework/webapp/src/test/groovy/org/apache/ofbiz/webapp/test/OfbizPathShortenerTests.groovy

Reply via email to