Failed
org.appng.application.manager.business.RoleTest.testShowAll
Failing for the past 4 builds
(Since Failed )
Error Message
XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected attribute value '1' but was '0' - comparing <resultset hits="1"...> at /datasource[1]/data[1]/resultset[1]/@hits to <resultset hits="0"...> at /datasource[1]/data[1]/resultset[1]/@hits <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <datasource xmlns="http://www.appng.org/schema/platform" id="roles"> <config> <title id="roles">Roles</title> <permissions> <permission ref="role.list" mode="set"></permission> </permissions> <params> <param name="appid">1</param> <param name="roleid"/> </params> <meta-data bindClass="org.appng.api.model.Role" result-selector="${current.id eq roleid}"> <field name="name" type="text" binding="name"> <sort order="asc" prio="0" ignore-case="true"/> <label id="name">Name</label> </field> <field name="description" type="text" binding="description"> <label id="description">Description</label> </field> <field name="application.name" type="text" readonly="true" binding="application.name"> <label id="application">Application</label> </field> <field name="actions" type="linkpanel" binding="actions"> <label id="actions">Actions</label> </field> </meta-data> <linkpanel id="other" location="both"> <link id="other[1]" mode="intern" target="/applications/update/1/role/create#tab_roles"> <permissions> <permission ref="role.create" mode="set"></permission> </permissions> <label id="role.create">Create role</label> <icon>new</icon> </link> </linkpanel> <linkpanel id="actions" location="inline"> <link id="actions[1]" mode="intern" target="/applications/update/1/role/update/${current.id}#tab_roles" default="true"> <permissions> <permission ref="role.edit" mode="set"></permission> </permissions> <label id="edit">Edit</label> <icon>edit</icon> </link> <link id="actions[2]" mode="intern" target="/applications/update/1?form_action=delete-role&roleid=${current.id}#tab_roles"> <permissions> <permission ref="role.delete" mode="set"></permission> </permissions> <label id="delete">Delete</label> <icon>delete</icon> <confirmation id="role.delete.confirm" params="#{name}">Do you really want to delete the role "#{name}"?</confirmation> </link> </linkpanel> </config> <data> <resultset chunk="0" chunkname="roles" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="-1" hits="0"/> </data> </datasource> , org.custommonkey.xmlunit.Diff [different] Expected attribute value '1' but was '0' - comparing <resultset hits="1"...> at /datasource[1]/data[1]/resultset[1]/@hits to <resultset hits="0"...> at /datasource[1]/data[1]/resultset[1]/@hits
Stacktrace
junit.framework.AssertionFailedError: XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected attribute value '1' but was '0' - comparing <resultset hits="1"...> at /datasource[1]/data[1]/resultset[1]/@hits to <resultset hits="0"...> at /datasource[1]/data[1]/resultset[1]/@hits <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <datasource xmlns="http://www.appng.org/schema/platform" id="roles"> <config> <title id="roles">Roles</title> <permissions> <permission ref="role.list" mode="set"></permission> </permissions> <params> <param name="appid">1</param> <param name="roleid"/> </params> <meta-data bindClass="org.appng.api.model.Role" result-selector="${current.id eq roleid}"> <field name="name" type="text" binding="name"> <sort order="asc" prio="0" ignore-case="true"/> <label id="name">Name</label> </field> <field name="description" type="text" binding="description"> <label id="description">Description</label> </field> <field name="application.name" type="text" readonly="true" binding="application.name"> <label id="application">Application</label> </field> <field name="actions" type="linkpanel" binding="actions"> <label id="actions">Actions</label> </field> </meta-data> <linkpanel id="other" location="both"> <link id="other[1]" mode="intern" target="/applications/update/1/role/create#tab_roles"> <permissions> <permission ref="role.create" mode="set"></permission> </permissions> <label id="role.create">Create role</label> <icon>new</icon> </link> </linkpanel> <linkpanel id="actions" location="inline"> <link id="actions[1]" mode="intern" target="/applications/update/1/role/update/${current.id}#tab_roles" default="true"> <permissions> <permission ref="role.edit" mode="set"></permission> </permissions> <label id="edit">Edit</label> <icon>edit</icon> </link> <link id="actions[2]" mode="intern" target="/applications/update/1?form_action=delete-role&roleid=${current.id}#tab_roles"> <permissions> <permission ref="role.delete" mode="set"></permission> </permissions> <label id="delete">Delete</label> <icon>delete</icon> <confirmation id="role.delete.confirm" params="#{name}">Do you really want to delete the role "#{name}"?</confirmation> </link> </linkpanel> </config> <data> <resultset chunk="0" chunkname="roles" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="-1" hits="0"/> </data> </datasource> , org.custommonkey.xmlunit.Diff [different] Expected attribute value '1' but was '0' - comparing <resultset hits="1"...> at /datasource[1]/data[1]/resultset[1]/@hits to <resultset hits="0"...> at /datasource[1]/data[1]/resultset[1]/@hits at org.appng.application.manager.business.RoleTest.testShowAll(RoleTest.java:112)