Validating the orderId is a bit different from validating other
attributes because the orderId is a scoped value.
Exact matching and implicit scope
<test name="test_so_orderId_1">
<flow>flow1</flow>
<description>Test so : orderId unscoped validation</description>
<inject mod="getSo">
<so orderId="1"/>
</inject>
<expect mod="port1">
<so orderId="1"/>
</expect>
</test>
Exact matching and explicit scope
<test name="test_so_orderId_2">
<flow>flow1</flow>
<description>Test so : orderId scoped validation</description>
<inject mod="getSo">
<so orderId="1"/>
</inject>
<expect mod="port1">
<so orderId="test_so_orderId_2@@1"/>
</expect>
</test>
Regexp matching
<test name="test_so_orderId_4">
<flow>flow1</flow>
<description>Test so : orderId matches regexp</description>
<inject mod="getSo">
<so orderId="1"/>
</inject>
<expect mod="port1">
<so reOrderId="test_.*1"/>
</expect>
</test>
Copyright © Cloud Software Group, Inc. All rights reserved.