<munit:config name="munit"
mock-connectors="false"
mock-inbounds="false"/>
MUnit 2.0.0-BETA Changes
We’ve introduced several changes to the MUnit 2.X syntax. Please find below a list of those changes.
MUnit config
For version 2.1 and later see Enable Flow Sources. |
-
We removed the attributes mock-connectors and mock-inbounds. They have been replaced with disableFlowSources.
-
We’ve added the exclude-flow-sources
<munit:config disableFlowSources="true">
<munit:exclude-flow-sources>
<munit:flows>
<munit:flow value="mockedFlow"/>
<munit:flow value="mockedFlow2"/>
</munit:flows>
</munit:exclude-flow-sources>
</munit:config>
Before/After Flows
This section refers to before-suite, after-suite, before-test, after-test.
There are no change to the syntax of these scopes, but while in MUnit 1.x we allow as many of any of them as the user wanted in MUnit 2.x we allow only one of each per MUnit Test Suite file.
This restriction will be enforced at deployment and the deploy of the application will fail should any such scope is present more than one time.
Test Flow
<munit:test name="test-1"
expectException="java.lang.RuntimeException"
ignore="false"
description="Descriptive text"/>
<munit:test name="test-1"
expectedErrorType="type"
expectedException="java.lang.RuntimeException"
ignore="false"
tags="full_regression,smoke"
description="Descriptive text">
<munit:behavior>
</munit:behavior>
<munit:execution>
</munit:execution>
<munit:validation>
</munit:validation>
</munit:test>