Skip to content

Regression

org.appng.core.model.ApplicationProviderTest.testEntities

Failing for the past 1 build (Since Failed#111 )
Took 0.19 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '2' but was '3' - comparing <datasource...> at /applicationReference[1]/pages[1]/page[1]/structure[1]/section[1]/element[1]/datasource[1] to <datasource...> at /applicationReference[1]/pages[1]/page[1]/structure[1]/section[1]/element[1]/datasource[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<applicationReference xmlns="http://www.appng.org/schema/platform" id="demo-application" version="1.5.2">
    <config>
        <title id="plugintitle">A Test-Plugin</title>
        <permissions>
            <permission ref="debug" mode="set"></permission>
        </permissions>
        <session>
            <session-params>
                <session-param name="sessionparam1"></session-param>
                <session-param name="sessionparam2"></session-param>
            </session-params>
        </session>
    </config>
    <pages>
        <page id="entity" type="index" executionTime="51">
            <config>
                <title id="entity">Entity</title>
                <description></description>
                <permissions>
                    <permission ref="page.entity" mode="set"></permission>
                </permissions>
                <url-schema>
                    <url-params>
                        <url-param name="action"/>
                        <url-param name="entityId"/>
                        <url-param name="entityAction"/>
                        <url-param name="entityId"/>
                    </url-params>
                    <get-params>
                        <get-param name="form_action"></get-param>
                    </get-params>
                    <post-params>
                        <post-param name="form_action"></post-param>
                    </post-params>
                </url-schema>
                <linkpanel id="page-nav" location="top">
                    <link id="page-nav[1]" mode="intern" target="/page0">
                        <label id="page0">Page 0</label>
                    </link>
                    <link id="page-nav[2]" mode="intern" target="/page1">
                        <condition expression="${1==1}"/>
                        <label id="page1">Page 1</label>
                    </link>
                    <link id="page-nav[4]" mode="intern" target="/page3">
                        <permissions>
                            <permission ref="page3" mode="set"></permission>
                        </permissions>
                        <label id="page3">Page 3</label>
                    </link>
                </linkpanel>
            </config>
            <structure>
                <section executionTime="39" id="42">
                    <element executionTime="39">
                        <datasource id="entities">
                            <config>
<title id="entities">Entities</title>
<permissions>
    <permission ref="show_entities" mode="set"></permission>
</permissions>
<params>
    <param name="param1"></param>
    <param name="param2"></param>
    <param name="param3">3</param>
    <param name="param4" default="4">4</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" readonly="true" hidden="true" binding="name">
        <sort order="asc" prio="0"/>
        <label id="name">Name</label>
    </field>
    <field name="integerValue" type="int" format="#" binding="integerValue">
        <label id="integerValue">integer value</label>
    </field>
    <field name="doubleValue" type="decimal" format="#.##" binding="doubleValue">
        <sort order="desc" prio="1"/>
        <label id="doubleValue">double value</label>
    </field>
    <field name="booleanValue" type="checkbox" binding="booleanValue">
        <label id="booleanValue">boolean value</label>
    </field>
    <field name="actions" type="linkpanel" binding="actions">
        <label id="actions">Actions</label>
    </field>
</meta-data>
<linkpanel id="actions" location="inline">
    <link id="actions[1]" mode="intern" target="/${current.id}_edit" default="true">
        <label id="edit">Edit</label>
        <icon>edit</icon>
    </link>
    <link id="actions[2]" mode="intern" target="/${current.id}_delete" default="true">
        <label id="delete">Delete</label>
        <icon>delete</icon>
        <confirmation id="confirm.delete" params="#{name}">Really delete #{name}?</confirmation>
    </link>
</linkpanel>
                            </config>
                            <messages ref="entities"/>
                            <data>
<resultset chunk="0" chunkname="entities" chunksize="2" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="2">
    <result>
        <field name="id" type="int">
            <value>1</value>
        </field>
        <field name="name" type="text">
            <value>entity1</value>
        </field>
        <field name="integerValue" type="int">
            <value>5</value>
        </field>
        <field name="doubleValue" type="decimal">
            <value>5.5</value>
        </field>
        <field name="booleanValue" type="checkbox">
            <value>false</value>
        </field>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/1_edit" default="true">
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/1_delete" default="true">
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="confirm.delete" params="#{name}">Really delete entity1?</confirmation>
            </link>
        </linkpanel>
    </result>
    <result>
        <field name="id" type="int">
            <value>2</value>
        </field>
        <field name="name" type="text">
            <value>entity2</value>
        </field>
        <field name="integerValue" type="int">
            <value>7</value>
        </field>
        <field name="doubleValue" type="decimal">
            <value>7.8</value>
        </field>
        <field name="booleanValue" type="checkbox">
            <value>true</value>
        </field>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/2_edit" default="true">
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/2_delete" default="true">
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="confirm.delete" params="#{name}">Really delete entity2?</confirmation>
            </link>
        </linkpanel>
    </result>
</resultset>
                            </data>
                        </datasource>
                    </element>
                </section>
            </structure>
        </page>
    </pages>
</applicationReference>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '2' but was '3' - comparing <datasource...> at /applicationReference[1]/pages[1]/page[1]/structure[1]/section[1]/element[1]/datasource[1] to <datasource...> at /applicationReference[1]/pages[1]/page[1]/structure[1]/section[1]/element[1]/datasource[1]

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '2' but was '3' - comparing <datasource...> at /applicationReference[1]/pages[1]/page[1]/structure[1]/section[1]/element[1]/datasource[1] to <datasource...> at /applicationReference[1]/pages[1]/page[1]/structure[1]/section[1]/element[1]/datasource[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<applicationReference xmlns="http://www.appng.org/schema/platform" id="demo-application" version="1.5.2">
    <config>
        <title id="plugintitle">A Test-Plugin</title>
        <permissions>
            <permission ref="debug" mode="set"></permission>
        </permissions>
        <session>
            <session-params>
                <session-param name="sessionparam1"></session-param>
                <session-param name="sessionparam2"></session-param>
            </session-params>
        </session>
    </config>
    <pages>
        <page id="entity" type="index" executionTime="51">
            <config>
                <title id="entity">Entity</title>
                <description></description>
                <permissions>
                    <permission ref="page.entity" mode="set"></permission>
                </permissions>
                <url-schema>
                    <url-params>
                        <url-param name="action"/>
                        <url-param name="entityId"/>
                        <url-param name="entityAction"/>
                        <url-param name="entityId"/>
                    </url-params>
                    <get-params>
                        <get-param name="form_action"></get-param>
                    </get-params>
                    <post-params>
                        <post-param name="form_action"></post-param>
                    </post-params>
                </url-schema>
                <linkpanel id="page-nav" location="top">
                    <link id="page-nav[1]" mode="intern" target="/page0">
                        <label id="page0">Page 0</label>
                    </link>
                    <link id="page-nav[2]" mode="intern" target="/page1">
                        <condition expression="${1==1}"/>
                        <label id="page1">Page 1</label>
                    </link>
                    <link id="page-nav[4]" mode="intern" target="/page3">
                        <permissions>
                            <permission ref="page3" mode="set"></permission>
                        </permissions>
                        <label id="page3">Page 3</label>
                    </link>
                </linkpanel>
            </config>
            <structure>
                <section executionTime="39" id="42">
                    <element executionTime="39">
                        <datasource id="entities">
                            <config>
<title id="entities">Entities</title>
<permissions>
    <permission ref="show_entities" mode="set"></permission>
</permissions>
<params>
    <param name="param1"></param>
    <param name="param2"></param>
    <param name="param3">3</param>
    <param name="param4" default="4">4</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" readonly="true" hidden="true" binding="name">
        <sort order="asc" prio="0"/>
        <label id="name">Name</label>
    </field>
    <field name="integerValue" type="int" format="#" binding="integerValue">
        <label id="integerValue">integer value</label>
    </field>
    <field name="doubleValue" type="decimal" format="#.##" binding="doubleValue">
        <sort order="desc" prio="1"/>
        <label id="doubleValue">double value</label>
    </field>
    <field name="booleanValue" type="checkbox" binding="booleanValue">
        <label id="booleanValue">boolean value</label>
    </field>
    <field name="actions" type="linkpanel" binding="actions">
        <label id="actions">Actions</label>
    </field>
</meta-data>
<linkpanel id="actions" location="inline">
    <link id="actions[1]" mode="intern" target="/${current.id}_edit" default="true">
        <label id="edit">Edit</label>
        <icon>edit</icon>
    </link>
    <link id="actions[2]" mode="intern" target="/${current.id}_delete" default="true">
        <label id="delete">Delete</label>
        <icon>delete</icon>
        <confirmation id="confirm.delete" params="#{name}">Really delete #{name}?</confirmation>
    </link>
</linkpanel>
                            </config>
                            <messages ref="entities"/>
                            <data>
<resultset chunk="0" chunkname="entities" chunksize="2" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="2">
    <result>
        <field name="id" type="int">
            <value>1</value>
        </field>
        <field name="name" type="text">
            <value>entity1</value>
        </field>
        <field name="integerValue" type="int">
            <value>5</value>
        </field>
        <field name="doubleValue" type="decimal">
            <value>5.5</value>
        </field>
        <field name="booleanValue" type="checkbox">
            <value>false</value>
        </field>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/1_edit" default="true">
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/1_delete" default="true">
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="confirm.delete" params="#{name}">Really delete entity1?</confirmation>
            </link>
        </linkpanel>
    </result>
    <result>
        <field name="id" type="int">
            <value>2</value>
        </field>
        <field name="name" type="text">
            <value>entity2</value>
        </field>
        <field name="integerValue" type="int">
            <value>7</value>
        </field>
        <field name="doubleValue" type="decimal">
            <value>7.8</value>
        </field>
        <field name="booleanValue" type="checkbox">
            <value>true</value>
        </field>
        <linkpanel id="actions" location="inline">
            <link id="actions[1]" mode="intern" target="/2_edit" default="true">
                <label id="edit">Edit</label>
                <icon>edit</icon>
            </link>
            <link id="actions[2]" mode="intern" target="/2_delete" default="true">
                <label id="delete">Delete</label>
                <icon>delete</icon>
                <confirmation id="confirm.delete" params="#{name}">Really delete entity2?</confirmation>
            </link>
        </linkpanel>
    </result>
</resultset>
                            </data>
                        </datasource>
                    </element>
                </section>
            </structure>
        </page>
    </pages>
</applicationReference>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '2' but was '3' - comparing <datasource...> at /applicationReference[1]/pages[1]/page[1]/structure[1]/section[1]/element[1]/datasource[1] to <datasource...> at /applicationReference[1]/pages[1]/page[1]/structure[1]/section[1]/element[1]/datasource[1]

	at org.appng.core.model.ApplicationProviderTest.runMonitoredTest(ApplicationProviderTest.java:278)
	at org.appng.core.model.ApplicationProviderTest.testEntities(ApplicationProviderTest.java:145)