Skip to content

Failed

org.appng.application.manager.business.CacheTest.testCacheStatistics

Failing for the past 1 build (Since Failed#184 )
Took 0.12 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected text value '51' but was '500' - comparing <value ...>51</value> at /datasource[1]/data[1]/resultset[1]/result[3]/field[2]/value[1]/text()[1] to <value ...>500</value> at /datasource[1]/data[1]/resultset[1]/result[3]/field[2]/value[1]/text()[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="cacheStatistics">
    <config>
        <title id="cache.statistics">Cache statistics</title>
        <permissions>
            <permission ref="cache.statistics.list" mode="set"></permission>
        </permissions>
        <params>
            <param name="siteid">1</param>
            <param name="clearLink"/>
        </params>
        <meta-data bindClass="java.util.Map$Entry">
            <field name="key" type="longtext" binding="key">
                <label id="name">Name</label>
            </field>
            <field name="value" type="text" displayLength="1000" binding="value">
                <label id="value">Value</label>
            </field>
        </meta-data>
        <linkpanel id="other" location="bottom">
            <link id="other[1]" mode="intern" target="">
                <permissions>
                    <permission ref="cache.clear" mode="set"></permission>
                </permissions>
                <label id="cache.clear">Clear cache</label>
                <icon>delete</icon>
            </link>
        </linkpanel>
    </config>
    <data paginate="false">
        <resultset chunk="0" chunkname="cacheStatistics" chunksize="12" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="12">
            <result>
                <field name="key" type="longtext">
                    <value>Name</value>
                </field>
                <field name="value" type="text">
                    <value>pageCache-localhost</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Size</value>
                </field>
                <field name="value" type="text">
                    <value>500</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Hits</value>
                </field>
                <field name="value" type="text">
                    <value>500</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Hits %</value>
                </field>
                <field name="value" type="text">
                    <value>100.0</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Misses</value>
                </field>
                <field name="value" type="text">
                    <value>0</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Misses %</value>
                </field>
                <field name="value" type="text">
                    <value>0.0</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Puts</value>
                </field>
                <field name="value" type="text">
                    <value>500</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Average put time (ms)</value>
                </field>
                <field name="value" type="text">
                    <value>0.035536684</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Gets</value>
                </field>
                <field name="value" type="text">
                    <value>500</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Average get time (ms)</value>
                </field>
                <field name="value" type="text">
                    <value>0.01707638</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Removals</value>
                </field>
                <field name="value" type="text">
                    <value>0</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Average removal time (ms)</value>
                </field>
                <field name="value" type="text">
                    <value>0.0</value>
                </field>
            </result>
        </resultset>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected text value '51' but was '500' - comparing <value ...>51</value> at /datasource[1]/data[1]/resultset[1]/result[3]/field[2]/value[1]/text()[1] to <value ...>500</value> at /datasource[1]/data[1]/resultset[1]/result[3]/field[2]/value[1]/text()[1]

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected text value '51' but was '500' - comparing <value ...>51</value> at /datasource[1]/data[1]/resultset[1]/result[3]/field[2]/value[1]/text()[1] to <value ...>500</value> at /datasource[1]/data[1]/resultset[1]/result[3]/field[2]/value[1]/text()[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="cacheStatistics">
    <config>
        <title id="cache.statistics">Cache statistics</title>
        <permissions>
            <permission ref="cache.statistics.list" mode="set"></permission>
        </permissions>
        <params>
            <param name="siteid">1</param>
            <param name="clearLink"/>
        </params>
        <meta-data bindClass="java.util.Map$Entry">
            <field name="key" type="longtext" binding="key">
                <label id="name">Name</label>
            </field>
            <field name="value" type="text" displayLength="1000" binding="value">
                <label id="value">Value</label>
            </field>
        </meta-data>
        <linkpanel id="other" location="bottom">
            <link id="other[1]" mode="intern" target="">
                <permissions>
                    <permission ref="cache.clear" mode="set"></permission>
                </permissions>
                <label id="cache.clear">Clear cache</label>
                <icon>delete</icon>
            </link>
        </linkpanel>
    </config>
    <data paginate="false">
        <resultset chunk="0" chunkname="cacheStatistics" chunksize="12" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="12">
            <result>
                <field name="key" type="longtext">
                    <value>Name</value>
                </field>
                <field name="value" type="text">
                    <value>pageCache-localhost</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Size</value>
                </field>
                <field name="value" type="text">
                    <value>500</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Hits</value>
                </field>
                <field name="value" type="text">
                    <value>500</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Hits %</value>
                </field>
                <field name="value" type="text">
                    <value>100.0</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Misses</value>
                </field>
                <field name="value" type="text">
                    <value>0</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Misses %</value>
                </field>
                <field name="value" type="text">
                    <value>0.0</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Puts</value>
                </field>
                <field name="value" type="text">
                    <value>500</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Average put time (ms)</value>
                </field>
                <field name="value" type="text">
                    <value>0.035536684</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Gets</value>
                </field>
                <field name="value" type="text">
                    <value>500</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Average get time (ms)</value>
                </field>
                <field name="value" type="text">
                    <value>0.01707638</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Removals</value>
                </field>
                <field name="value" type="text">
                    <value>0</value>
                </field>
            </result>
            <result>
                <field name="key" type="longtext">
                    <value>Average removal time (ms)</value>
                </field>
                <field name="value" type="text">
                    <value>0.0</value>
                </field>
            </result>
        </resultset>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected text value '51' but was '500' - comparing <value ...>51</value> at /datasource[1]/data[1]/resultset[1]/result[3]/field[2]/value[1]/text()[1] to <value ...>500</value> at /datasource[1]/data[1]/resultset[1]/result[3]/field[2]/value[1]/text()[1]

	at org.appng.application.manager.business.CacheTest.testCacheStatistics(CacheTest.java:82)