Skip to content

Regression

org.example.EmployeesTest.testCreateEmployee

Failing for the past 1 build (Since Failed#120 )
Took 0.32 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '0' but was '1' - comparing <messages...> at /action[1]/messages[1] to <messages...> at /action[1]/messages[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<action xmlns="http://www.appng.org/schema/platform" id="create" eventId="employeeEvent" async="false">
    <config>
        <meta-data bindClass="org.example.Employee">
            <field name="name" type="text" binding="name">
                <label id="name">name</label>
            </field>
            <field name="lastname" type="text" binding="lastname">
                <label id="lastname">lastname</label>
            </field>
        </meta-data>
    </config>
    <messages ref="create">
        <message ref="create" class="OK">Employee created!</message>
    </messages>
    <datasource id="employee"/>
    <data>
        <result>
            <field name="name" type="text">
                <value>John</value>
            </field>
            <field name="lastname" type="text">
                <value>Doe</value>
            </field>
        </result>
    </data>
    <bean id="employees"/>
</action>
, org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '0' but was '1' - comparing <messages...> at /action[1]/messages[1] to <messages...> at /action[1]/messages[1]

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '0' but was '1' - comparing <messages...> at /action[1]/messages[1] to <messages...> at /action[1]/messages[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<action xmlns="http://www.appng.org/schema/platform" id="create" eventId="employeeEvent" async="false">
    <config>
        <meta-data bindClass="org.example.Employee">
            <field name="name" type="text" binding="name">
                <label id="name">name</label>
            </field>
            <field name="lastname" type="text" binding="lastname">
                <label id="lastname">lastname</label>
            </field>
        </meta-data>
    </config>
    <messages ref="create">
        <message ref="create" class="OK">Employee created!</message>
    </messages>
    <datasource id="employee"/>
    <data>
        <result>
            <field name="name" type="text">
                <value>John</value>
            </field>
            <field name="lastname" type="text">
                <value>Doe</value>
            </field>
        </result>
    </data>
    <bean id="employees"/>
</action>
, org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '0' but was '1' - comparing <messages...> at /action[1]/messages[1] to <messages...> at /action[1]/messages[1]

	at org.example.EmployeesTest.testCreateEmployee(EmployeesTest.java:65)