Validating orderId
In this test the sod orderId is not given in the inject element. The
sod::orderId will be set to the value of so::orderId.
-
Exact matching, implicit setting and implicit scope
<test name="test_sod_orderId_1"> <flow>flow1</flow> <description>Test sod : orderId is computed if omitted (unscoped value)</description> <inject mod="getSo"> <so orderId="1"> <sod/> </so> </inject> <expect mod="port1"> <so orderId="1"> <sod orderId="1"/> </so> </expect> </test>
-
Exact matching, implicit setting and explicit scope
<test name="test_sod_orderId_2"> <flow>flow1</flow> <description>Test sod : orderId is computed if omitted (scoped value)</description> <inject mod="getSo"> <so orderId="1"> <sod/> </so> </inject> <expect mod="port1"> <so orderId="1"> <sod orderId="test_sod_orderId_2@@1"/> </so> </expect> </test>
-
Regexp matching and implicit setting
<test name="test_sod_orderId_3"> <flow>flow1</flow> <description>Test sod : no orderId specified, reOrderId used for validation</description> <inject mod="getSo"> <so orderId="1"> <sod/> </so> </inject> <expect mod="port1"> <so reOrderId=".*"> <sod reOrderId=".*"/> </so> </expect> </test>
Copyright © Cloud Software Group, Inc. All rights reserved.