IBM Support

IT41347: JUNIT COMPARISON OF XML MESSAGE TREES INCORRECTLY REPORTS FAILURE IF XML ATTRIBUTES IN DIFFERENT ORDER

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

  • JUnit comparison of XML message trees incorrectly reports
    failure if XML attributes in different order
    

Local fix

  • NA
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    All  users of IBM App Connect v12 using trhe JUnit Test feature
    
    
    Platforms affected:
    MultiPlatform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    When using the JUnit matchers to match a logical message tree
    with expected data stored in a .mxml assertions can fail if the
    tree contains elements which match but attributes of xml
    elements are in the wrong order. For example:
    
    <test attr1="foo" attr2="bar/>
    
    Would fail to match with:
    
    <test attr2="bar" attr1="foo"/>
    
    This is incorrect since XML attributes are considered to be
    unordered int he XML specification. This problem may manifest
    itself by assertions in JUnit code failing unexpectedly for
    example:
    
    assertThat(actualMessageAssembly,
    equalsMessage(expectedMessageAssembly));
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT41347

  • 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

    2022-06-28

  • Closed date

    2023-08-02

  • Last modified date

    2023-08-02

  • 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

[{"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","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 August 2023