IBM Support

IT39039: INTEGRATION TESTS USING MESSAGEASSEMBLY MATCHER UNABLE TO USE IGNOREPATH() METHOD TO EXCLUDE ELEMENTS FROM THE COMPARISON

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When writing integration tests using the IntegrationTest
    library, the ignorePath() filter on the MessageAssembly matcher
    allows parts of a message tree to be excluded from the
    comparison. When this method is used it is throwing a
    TestException exception and the elements are not excluded from
    the match comparison.
    

Local fix

  • NA
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    All users of IBM App Connect Enterprise Version 12 using the
    Integration test functionality
    
    
    Platforms affected:
    MultiPlatform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    When comparing the contents of a message tree using the
    message-assembly matcher the ignorePath() method should allow
    parts of the message tree to be excluded from the comparison.
    When the ignorePath method is used it is throwing a java
    TestException and the parts of the tree which should be excluded
    from the comparison are still being compared.
    

Problem conclusion

  • The ignorePath() method has been corrected. and can be used with
    the following syntax
    
    assertThat(actualMessageAssembly,
    equalsMessageAssembly(expectedMessageAssembly)
            .ignorePath("/Message/XMLNSC/Data/Description", true)
            .ignorePath("/Message/Properties/Transactional", false)
    
    .ignorePath("/LocalEnvironment/Destination/HTTP/RequestIdentifie
    r", false));
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v12.0      12.0.3.0
    
    The latest available maintenance can be obtained from:
    http://www-01.ibm.com/support/docview.wss?rs=849&uid=swg27006041
    
    If the maintenance level is not yet available,information on
    its planned availability can be found on:
    http://www-1.ibm.com/support/docview.wss?rs=849&uid=swg27006308
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT39039

  • Reported component name

    APP CONNECT ENT

  • Reported component ID

    5724J0560

  • Reported release

    C00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-11-11

  • Closed date

    2021-11-22

  • Last modified date

    2021-11-22

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    APP CONNECT ENT

  • Fixed component ID

    5724J0560

Applicable component levels

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSDR5J","label":"IBM App Connect Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"C00"}]

Document Information

Modified date:
23 November 2021