Skip to content

Failed

org.appng.application.manager.business.PermissionsTest.testShowPermissions

Failing for the past 1 build (Since Failed#140 )
Took 0.15 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected attribute value '2' but was '0' - comparing <resultset hits="2"...> 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="permissions">
    <config>
        <title id="permissions">Permissions</title>
        <permissions>
            <permission ref="permission.list" mode="set"></permission>
        </permissions>
        <params>
            <param name="appid">1</param>
        </params>
        <meta-data bindClass="org.appng.core.domain.PermissionImpl">
            <field name="name" type="text" binding="name">
                <sort/>
                <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" 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/permission/create#tab_permissions">
                <permissions>
                    <permission ref="permission.create" mode="set"></permission>
                </permissions>
                <label id="permission.create">Create Permission</label>
                <icon>new</icon>
            </link>
        </linkpanel>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/applications/update/1/permission/update/${current.id}#tab_permissions" default="true">
                <permissions>
                    <permission ref="permission.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-permission&amp;permissionid=${current.id}#tab_permissions">
                <permissions>
                    <permission ref="permission.delete" mode="set"></permission>
                </permissions>
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="permission.delete.confirm" params="#{name}">Do you really want to delete the permission "#{name}"?</confirmation>
            </link>
        </linkpanel>
    </config>
    <data>
        <resultset chunk="0" chunkname="permissions" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="-1" hits="0"/>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value '2' but was '0' - comparing <resultset hits="2"...> 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 '2' but was '0' - comparing <resultset hits="2"...> 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="permissions">
    <config>
        <title id="permissions">Permissions</title>
        <permissions>
            <permission ref="permission.list" mode="set"></permission>
        </permissions>
        <params>
            <param name="appid">1</param>
        </params>
        <meta-data bindClass="org.appng.core.domain.PermissionImpl">
            <field name="name" type="text" binding="name">
                <sort/>
                <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" 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/permission/create#tab_permissions">
                <permissions>
                    <permission ref="permission.create" mode="set"></permission>
                </permissions>
                <label id="permission.create">Create Permission</label>
                <icon>new</icon>
            </link>
        </linkpanel>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/applications/update/1/permission/update/${current.id}#tab_permissions" default="true">
                <permissions>
                    <permission ref="permission.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-permission&amp;permissionid=${current.id}#tab_permissions">
                <permissions>
                    <permission ref="permission.delete" mode="set"></permission>
                </permissions>
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="permission.delete.confirm" params="#{name}">Do you really want to delete the permission "#{name}"?</confirmation>
            </link>
        </linkpanel>
    </config>
    <data>
        <resultset chunk="0" chunkname="permissions" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="-1" hits="0"/>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value '2' but was '0' - comparing <resultset hits="2"...> 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.PermissionsTest.testShowPermissions(PermissionsTest.java:111)