Nav
You are viewing an older version of this topic. To go to a different version, use the version menu at the upper-right. +

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

  • We removed the attributes mock-connectors and mock-inbounds. They have been replaced with disableFlowSources.

  • We’ve added the exclude-flow-sources

MUnit config for 1.x

         
      
1
2
3
<munit:config name="munit"
  mock-connectors="false"
  mock-inbounds="false"/>
MUnit config for 2.x

         
      
1
2
3
4
5
6
7
8
<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

Test Syntax for MUnit 1.x

         
      
1
2
3
4
<munit:test name="test-1"
  expectException="java.lang.RuntimeException"
  ignore="false"
  description="Descriptive text"/>
Test Syntax for MUnit 2.x

         
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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>

Processors: NameSpace Changes

Processors will change of name space to munit-tools.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.

+