class AssyUnitTestUtils extends org.simplemes.mes.test.MESUnitTestUtils
Convenience utilities for MES Assy module unit tests. Used to create common data structures. Can also be used for GUI/Integration tests with proper transaction settings.
Note: These methods should only be used in Tests.
Fields inherited from class | Fields |
---|---|
class org.simplemes.mes.test.MESUnitTestUtils |
__$stMC |
Type | Name and description |
---|---|
private static AssyUnitTestUtils |
instance A singleton, used to allow sub-classes to provide additional features. |
Constructor and description |
---|
AssyUnitTestUtils
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
adjustProduct(org.simplemes.mes.product.domain.Product product, java.util.Map options) Allows sub-classes to adjust the Product before it is saved. |
|
static OrderAssembledComponent |
assembleComponent(org.simplemes.mes.demand.domain.Order order, java.util.Map options) Assembles a single component onto the order/LSN. |
|
static groovy.lang.Tuple2<ScanRequest, ScanResponse> |
buildRequestAndResponse(java.util.Map<java.lang.String, java.lang.Object> options) Builds a parsed, but not resolved scan response/request for the given order with a LOT |
|
static org.simplemes.mes.demand.domain.Order |
releaseOrder(java.util.Map options) Create and release a single order, optionally on a routing with or without LSNs. |
|
static java.util.List<Order> |
releaseOrders(java.util.Map options) Create and release orders with product components with or without LSNs. |
Methods inherited from class | Name |
---|---|
class org.simplemes.mes.test.MESUnitTestUtils |
org.simplemes.mes.test.MESUnitTestUtils#getInstance(), org.simplemes.mes.test.MESUnitTestUtils#buildSimpleProductWithRouting(java.util.Map), org.simplemes.mes.test.MESUnitTestUtils#buildSimpleProductWithRouting(), org.simplemes.mes.test.MESUnitTestUtils#buildMasterRouting(), org.simplemes.mes.test.MESUnitTestUtils#buildMasterRouting(java.util.Map), org.simplemes.mes.test.MESUnitTestUtils#releaseOrder(), org.simplemes.mes.test.MESUnitTestUtils#releaseOrder(java.util.Map), org.simplemes.mes.test.MESUnitTestUtils#releaseOrders(), org.simplemes.mes.test.MESUnitTestUtils#releaseOrders(java.util.Map), org.simplemes.mes.test.MESUnitTestUtils#loadOrderInitialDataNeeded(java.util.Map), org.simplemes.mes.test.MESUnitTestUtils#resetCodeSequences(), org.simplemes.mes.test.MESUnitTestUtils#resetSequence(java.lang.Class, long), org.simplemes.mes.test.MESUnitTestUtils#resetSequence(java.lang.Class), org.simplemes.mes.test.MESUnitTestUtils#setLoginUser(), org.simplemes.mes.test.MESUnitTestUtils#clearLoginUser(), org.simplemes.mes.test.MESUnitTestUtils#getOriginalUserOverride(), org.simplemes.mes.test.MESUnitTestUtils#setOriginalUserOverride(java.lang.String), org.simplemes.mes.test.MESUnitTestUtils#setInstance(org.simplemes.mes.test.MESUnitTestUtils), org.simplemes.mes.test.MESUnitTestUtils#getMetaClass(), org.simplemes.mes.test.MESUnitTestUtils#setMetaClass(groovy.lang.MetaClass), org.simplemes.mes.test.MESUnitTestUtils#wait(long, int), org.simplemes.mes.test.MESUnitTestUtils#wait(), org.simplemes.mes.test.MESUnitTestUtils#wait(long), org.simplemes.mes.test.MESUnitTestUtils#equals(java.lang.Object), org.simplemes.mes.test.MESUnitTestUtils#toString(), org.simplemes.mes.test.MESUnitTestUtils#hashCode(), org.simplemes.mes.test.MESUnitTestUtils#getClass(), org.simplemes.mes.test.MESUnitTestUtils#notify(), org.simplemes.mes.test.MESUnitTestUtils#notifyAll(), org.simplemes.mes.test.MESUnitTestUtils#getProperty(java.lang.String), org.simplemes.mes.test.MESUnitTestUtils#setProperty(java.lang.String, java.lang.Object), org.simplemes.mes.test.MESUnitTestUtils#invokeMethod(java.lang.String, java.lang.Object) |
A singleton, used to allow sub-classes to provide additional features.
Allows sub-classes to adjust the Product before it is saved.
product
- The un-saved product.options
- the options for the order release.Assembles a single component onto the order/LSN. This is designed to be used only in tests.
This method creates a transaction (if needed)..
order
- The order to assemble a component for.options
- The options. See above.Builds a parsed, but not resolved scan response/request for the given order with a LOT
options
- Contains elements for the response: order/lsn, component and optional lot, vendor.Create and release a single order, optionally on a routing with or without LSNs. This is a convenience function that calls releaseOrders(java.util.Map).
This method creates a transaction (if needed)..
ArtefactTstUtils.addAdditionArtefactsForTest([AssemblyAddition])
static dirtyDomains = [ActionLog, Order, Product, MasterRouting]
options
- See options above. (Optional)Create and release orders with product components with or without LSNs.
This method creates a transaction (if needed)..
options
- See for the releaseOrder(java.util.Map) for details. (Optional)Groovy Documentation