Skip to content

Failed

org.appng.application.manager.business.SitePropertiesTest.testShowAll

Failing for the past 4 builds (Since Failed#134 )
Took 0.2 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected attribute value '3' but was '0' - comparing <resultset hits="3"...> 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="site-properties">
    <config>
        <title id="site.properties">Site properties</title>
        <permissions>
            <permission ref="site.properties" mode="set"></permission>
        </permissions>
        <params>
            <param name="siteid">1</param>
            <param name="propId"/>
        </params>
        <meta-data bindClass="org.appng.api.model.Property" result-selector="${current.name eq propId}">
            <field name="shortName" type="text" displayLength="50" binding="shortName">
                <sort order="asc" name="name" prio="0"/>
                <label id="name">Name</label>
            </field>
            <field name="displayValue" type="longtext" displayLength="120" binding="displayValue">
                <label id="activeValue">Active Value</label>
            </field>
            <field name="description" type="text" displayLength="400" binding="description">
                <label id="description">Description</label>
            </field>
            <field name="changedValue" type="image" binding="changedValue">
                <label></label>
                <icon condition="${!current.changedValue}">led_orange</icon>
                <icon condition="${current.changedValue}">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="/sites/update/1/site-property/create#tab_site-properties">
                <permissions>
                    <permission ref="site.property.create" mode="set"></permission>
                </permissions>
                <label id="property.create">Create property</label>
                <icon>new</icon>
            </link>
        </linkpanel>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/sites/update/1/site-property/update/${current.name}#tab_site-properties" default="true">
                <permissions>
                    <permission ref="site.property.edit" mode="set"></permission>
                </permissions>
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/sites/update/1?form_action=delete-site-property&amp;propertyid=${current.name}#tab_site-properties">
                <permissions>
                    <permission ref="site.property.delete" mode="set"></permission>
                </permissions>
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="property.delete.confirm" params="#{shortName}">Do you really want to delete the property "#{shortName}"?</confirmation>
            </link>
        </linkpanel>
    </config>
    <data>
        <resultset chunk="0" chunkname="site-properties" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="-1" hits="0"/>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value '3' but was '0' - comparing <resultset hits="3"...> 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 '3' but was '0' - comparing <resultset hits="3"...> 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="site-properties">
    <config>
        <title id="site.properties">Site properties</title>
        <permissions>
            <permission ref="site.properties" mode="set"></permission>
        </permissions>
        <params>
            <param name="siteid">1</param>
            <param name="propId"/>
        </params>
        <meta-data bindClass="org.appng.api.model.Property" result-selector="${current.name eq propId}">
            <field name="shortName" type="text" displayLength="50" binding="shortName">
                <sort order="asc" name="name" prio="0"/>
                <label id="name">Name</label>
            </field>
            <field name="displayValue" type="longtext" displayLength="120" binding="displayValue">
                <label id="activeValue">Active Value</label>
            </field>
            <field name="description" type="text" displayLength="400" binding="description">
                <label id="description">Description</label>
            </field>
            <field name="changedValue" type="image" binding="changedValue">
                <label></label>
                <icon condition="${!current.changedValue}">led_orange</icon>
                <icon condition="${current.changedValue}">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="/sites/update/1/site-property/create#tab_site-properties">
                <permissions>
                    <permission ref="site.property.create" mode="set"></permission>
                </permissions>
                <label id="property.create">Create property</label>
                <icon>new</icon>
            </link>
        </linkpanel>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/sites/update/1/site-property/update/${current.name}#tab_site-properties" default="true">
                <permissions>
                    <permission ref="site.property.edit" mode="set"></permission>
                </permissions>
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/sites/update/1?form_action=delete-site-property&amp;propertyid=${current.name}#tab_site-properties">
                <permissions>
                    <permission ref="site.property.delete" mode="set"></permission>
                </permissions>
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="property.delete.confirm" params="#{shortName}">Do you really want to delete the property "#{shortName}"?</confirmation>
            </link>
        </linkpanel>
    </config>
    <data>
        <resultset chunk="0" chunkname="site-properties" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="-1" hits="0"/>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value '3' but was '0' - comparing <resultset hits="3"...> 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.SitePropertiesTest.testShowAll(SitePropertiesTest.java:89)