Regression
org.appng.core.model.ApplicationProviderTest.testCallAction
Failing for the past 1 build
(Since Failed )
Error Message
XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected number of element attributes '3' but was '2' - comparing <action...> at /action[1] to <action...> at /action[1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action xmlns="http://www.appng.org/schema/platform" id="create" eventId="events"> <config> <title id="create.entity">Create entity</title> <permissions> <permission ref="create.entity" mode="set"></permission> </permissions> <params> <param name="form_action">create</param> <param name="action">create</param> </params> <meta-data bindClass="org.appng.testapplication.TestEntity"> <field name="id" type="int" format="#" hidden="true" binding="id"> <label id="id">ID</label> <condition expression="true"/> </field> <field name="name" type="text" binding="name"> <label id="name">Name</label> <validation> <notNull> <message ref="name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </notNull> </validation> </field> <field name="integerValue" type="list:checkbox" binding="integerValue"> <label id="integerValue">integer value</label> </field> <field name="doubleValue" type="decimal" format="#.##" binding="doubleValue"> <label id="doubleValue">double value</label> </field> <field name="booleanValue" type="checkbox" binding="booleanValue"> <label id="booleanValue">boolean value</label> </field> <field name="parent" type="object" binding="parent"> <field name="name" type="text" binding="parent.name"> <validation> <notNull> <message ref="parent.name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </notNull> </validation> <messages ref="parent.name"> <message ref="parent.name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </messages> </field> <field name="integerValue" type="int" format="#" binding="parent.integerValue"/> </field> <field name="children" type="list:object" binding="children"> <field name="children[0]" type="object" binding="children[0]"> <field name="name" type="text" binding="children[0].name"> <validation> <notNull> <message ref="children[0].name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </notNull> </validation> <messages ref="children[0].name"> <message ref="children[0].name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </messages> </field> <field name="integerValue" type="int" format="#" binding="children[0].integerValue"/> </field> </field> </meta-data> </config> <condition expression="${form_action eq 'create' and action eq 'create'}"/> <datasource id="new-entity"/> <userdata> <input name="name">new name</input> </userdata> <data> <selection id="integerValue" type="checkbox"> <title id="integerValue">integer value</title> <option value="1" name="1" selected="false"/> <option value="2" name="2" selected="false"/> <option value="3" name="3" selected="false"/> <option value="4" name="4" selected="false"/> <option value="5" name="5" selected="true"/> </selection> <result> <field name="id" type="int"> <value></value> </field> <field name="name" type="text"> <value></value> </field> <field name="integerValue" type="list:checkbox"> <value></value> </field> <field name="doubleValue" type="decimal"> <value></value> </field> <field name="booleanValue" type="checkbox"> <value></value> </field> <field name="parent" type="object"> <field name="name" type="text"> <value>entity1</value> </field> <field name="integerValue" type="int"> <value>5</value> </field> <value></value> </field> <field name="children" type="list:object"> <field name="children[0]" type="object"> <field name="name" type="text"> <value>entity2</value> </field> <field name="integerValue" type="int"> <value>7</value> </field> <value></value> </field> <field name="children[1]" type="object"> <field name="name" type="text"> <value>entity3</value> </field> <field name="integerValue" type="int"> <value>9</value> </field> <value></value> </field> </field> </result> </data> <bean id="entities"> <option name="action" id="create"/> </bean> </action> , org.custommonkey.xmlunit.Diff [different] Expected number of element attributes '3' but was '2' - comparing <action...> at /action[1] to <action...> at /action[1]
Stacktrace
junit.framework.AssertionFailedError: XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected number of element attributes '3' but was '2' - comparing <action...> at /action[1] to <action...> at /action[1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action xmlns="http://www.appng.org/schema/platform" id="create" eventId="events"> <config> <title id="create.entity">Create entity</title> <permissions> <permission ref="create.entity" mode="set"></permission> </permissions> <params> <param name="form_action">create</param> <param name="action">create</param> </params> <meta-data bindClass="org.appng.testapplication.TestEntity"> <field name="id" type="int" format="#" hidden="true" binding="id"> <label id="id">ID</label> <condition expression="true"/> </field> <field name="name" type="text" binding="name"> <label id="name">Name</label> <validation> <notNull> <message ref="name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </notNull> </validation> </field> <field name="integerValue" type="list:checkbox" binding="integerValue"> <label id="integerValue">integer value</label> </field> <field name="doubleValue" type="decimal" format="#.##" binding="doubleValue"> <label id="doubleValue">double value</label> </field> <field name="booleanValue" type="checkbox" binding="booleanValue"> <label id="booleanValue">boolean value</label> </field> <field name="parent" type="object" binding="parent"> <field name="name" type="text" binding="parent.name"> <validation> <notNull> <message ref="parent.name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </notNull> </validation> <messages ref="parent.name"> <message ref="parent.name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </messages> </field> <field name="integerValue" type="int" format="#" binding="parent.integerValue"/> </field> <field name="children" type="list:object" binding="children"> <field name="children[0]" type="object" binding="children[0]"> <field name="name" type="text" binding="children[0].name"> <validation> <notNull> <message ref="children[0].name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </notNull> </validation> <messages ref="children[0].name"> <message ref="children[0].name" class="ERROR" code="{validation.notNull}">Field must not be empty</message> </messages> </field> <field name="integerValue" type="int" format="#" binding="children[0].integerValue"/> </field> </field> </meta-data> </config> <condition expression="${form_action eq 'create' and action eq 'create'}"/> <datasource id="new-entity"/> <userdata> <input name="name">new name</input> </userdata> <data> <selection id="integerValue" type="checkbox"> <title id="integerValue">integer value</title> <option value="1" name="1" selected="false"/> <option value="2" name="2" selected="false"/> <option value="3" name="3" selected="false"/> <option value="4" name="4" selected="false"/> <option value="5" name="5" selected="true"/> </selection> <result> <field name="id" type="int"> <value></value> </field> <field name="name" type="text"> <value></value> </field> <field name="integerValue" type="list:checkbox"> <value></value> </field> <field name="doubleValue" type="decimal"> <value></value> </field> <field name="booleanValue" type="checkbox"> <value></value> </field> <field name="parent" type="object"> <field name="name" type="text"> <value>entity1</value> </field> <field name="integerValue" type="int"> <value>5</value> </field> <value></value> </field> <field name="children" type="list:object"> <field name="children[0]" type="object"> <field name="name" type="text"> <value>entity2</value> </field> <field name="integerValue" type="int"> <value>7</value> </field> <value></value> </field> <field name="children[1]" type="object"> <field name="name" type="text"> <value>entity3</value> </field> <field name="integerValue" type="int"> <value>9</value> </field> <value></value> </field> </field> </result> </data> <bean id="entities"> <option name="action" id="create"/> </bean> </action> , org.custommonkey.xmlunit.Diff [different] Expected number of element attributes '3' but was '2' - comparing <action...> at /action[1] to <action...> at /action[1] at org.appng.core.model.ApplicationProviderTest.testCallAction(ApplicationProviderTest.java:252)