Skip to content

Failed

org.appng.application.manager.business.SubjectsTest.testShowAll

Failing for the past 5 builds (Since Failed#134 )
Took 0.15 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '4' but was '2' - comparing <selection...> at /datasource[1]/data[1]/selectionGroup[1]/selection[5] to <selection...> at /datasource[1]/data[1]/selectionGroup[1]/selection[5]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="users">
    <config>
        <title id="subjects">Users</title>
        <permissions>
            <permission ref="subject.list" mode="set"></permission>
        </permissions>
        <params>
            <param name="userId"/>
            <param name="groupId"/>
        </params>
        <meta-data bindClass="org.appng.api.model.Subject" result-selector="${current.id eq userId}">
            <field name="name" type="text" binding="name">
                <sort/>
                <label id="name">Name</label>
            </field>
            <field name="realname" type="text" binding="realname">
                <sort/>
                <label id="realname">Real name</label>
            </field>
            <field name="description" type="text" binding="description">
                <label id="description">Description</label>
            </field>
            <field name="typeName" type="text" binding="typeName">
                <label id="userType">Type</label>
            </field>
            <field name="language" type="text" binding="language">
                <label id="language">Language</label>
            </field>
            <field name="locked" type="image" binding="locked">
                <label id="locked">Locked</label>
                <icon condition="${current.locked}">led_red</icon>
                <icon condition="${not current.locked}">led_green</icon>
            </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="/users/user/create">
                <permissions>
                    <permission ref="subject.create" mode="set"></permission>
                </permissions>
                <label id="subject.create">Create user</label>
                <icon>new</icon>
            </link>
        </linkpanel>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/users/user/update/${current.id}" default="true">
                <permissions>
                    <permission ref="subject.edit" mode="set"></permission>
                </permissions>
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/users?form_action=delete&amp;userid=${current.id}">
                <permissions>
                    <permission ref="subject.delete" mode="set"></permission>
                </permissions>
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="subject.delete.confirm" params="#{name}">Do you really want to delete the user "#{name}"?</confirmation>
            </link>
        </linkpanel>
    </config>
    <data>
        <selectionGroup>
            <selection id="f_name" type="text">
                <title id="name">Name</title>
                <option value="" name="" selected="true"/>
            </selection>
            <selection id="f_rlnme" type="text">
                <title id="realname">Real name</title>
                <option value="" name="" selected="true"/>
            </selection>
            <selection id="f_eml" type="text">
                <title id="email">E-mail</title>
                <option value="" name="" selected="true"/>
            </selection>
            <selection id="f_type" type="select">
                <title id="type">Type</title>
                <option/>
                <option value="LOCAL_USER" name="Local User" selected="false"/>
                <option value="GLOBAL_USER" name="LDAP User" selected="false"/>
                <option value="GLOBAL_GROUP" name="LDAP Group" selected="false"/>
            </selection>
            <selection id="f_gid" type="select">
                <title id="group">Group</title>
                <option value="" name=""/>
            </selection>
            <selection id="f_lckd" type="radio">
                <title id="locked">Locked</title>
                <option value="all" name="All" selected="false"/>
                <option value="true" name="Yes" selected="false"/>
                <option value="false" name="No" selected="false"/>
            </selection>
        </selectionGroup>
        <resultset chunk="0" chunkname="users" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="-1" hits="0"/>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '4' but was '2' - comparing <selection...> at /datasource[1]/data[1]/selectionGroup[1]/selection[5] to <selection...> at /datasource[1]/data[1]/selectionGroup[1]/selection[5]

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '4' but was '2' - comparing <selection...> at /datasource[1]/data[1]/selectionGroup[1]/selection[5] to <selection...> at /datasource[1]/data[1]/selectionGroup[1]/selection[5]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="users">
    <config>
        <title id="subjects">Users</title>
        <permissions>
            <permission ref="subject.list" mode="set"></permission>
        </permissions>
        <params>
            <param name="userId"/>
            <param name="groupId"/>
        </params>
        <meta-data bindClass="org.appng.api.model.Subject" result-selector="${current.id eq userId}">
            <field name="name" type="text" binding="name">
                <sort/>
                <label id="name">Name</label>
            </field>
            <field name="realname" type="text" binding="realname">
                <sort/>
                <label id="realname">Real name</label>
            </field>
            <field name="description" type="text" binding="description">
                <label id="description">Description</label>
            </field>
            <field name="typeName" type="text" binding="typeName">
                <label id="userType">Type</label>
            </field>
            <field name="language" type="text" binding="language">
                <label id="language">Language</label>
            </field>
            <field name="locked" type="image" binding="locked">
                <label id="locked">Locked</label>
                <icon condition="${current.locked}">led_red</icon>
                <icon condition="${not current.locked}">led_green</icon>
            </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="/users/user/create">
                <permissions>
                    <permission ref="subject.create" mode="set"></permission>
                </permissions>
                <label id="subject.create">Create user</label>
                <icon>new</icon>
            </link>
        </linkpanel>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/users/user/update/${current.id}" default="true">
                <permissions>
                    <permission ref="subject.edit" mode="set"></permission>
                </permissions>
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/users?form_action=delete&amp;userid=${current.id}">
                <permissions>
                    <permission ref="subject.delete" mode="set"></permission>
                </permissions>
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="subject.delete.confirm" params="#{name}">Do you really want to delete the user "#{name}"?</confirmation>
            </link>
        </linkpanel>
    </config>
    <data>
        <selectionGroup>
            <selection id="f_name" type="text">
                <title id="name">Name</title>
                <option value="" name="" selected="true"/>
            </selection>
            <selection id="f_rlnme" type="text">
                <title id="realname">Real name</title>
                <option value="" name="" selected="true"/>
            </selection>
            <selection id="f_eml" type="text">
                <title id="email">E-mail</title>
                <option value="" name="" selected="true"/>
            </selection>
            <selection id="f_type" type="select">
                <title id="type">Type</title>
                <option/>
                <option value="LOCAL_USER" name="Local User" selected="false"/>
                <option value="GLOBAL_USER" name="LDAP User" selected="false"/>
                <option value="GLOBAL_GROUP" name="LDAP Group" selected="false"/>
            </selection>
            <selection id="f_gid" type="select">
                <title id="group">Group</title>
                <option value="" name=""/>
            </selection>
            <selection id="f_lckd" type="radio">
                <title id="locked">Locked</title>
                <option value="all" name="All" selected="false"/>
                <option value="true" name="Yes" selected="false"/>
                <option value="false" name="No" selected="false"/>
            </selection>
        </selectionGroup>
        <resultset chunk="0" chunkname="users" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="-1" hits="0"/>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '4' but was '2' - comparing <selection...> at /datasource[1]/data[1]/selectionGroup[1]/selection[5] to <selection...> at /datasource[1]/data[1]/selectionGroup[1]/selection[5]

	at org.appng.application.manager.business.SubjectsTest.testShowAll(SubjectsTest.java:158)