After converting geoserver to use gt-property-ng, I am getting a couple of
UI-related test failures that appear to have nothing to do with my changes.
When I test on master, these tests run fine.

In gs-web-core NewDataPageTest.testClickLink(): NullPointerException:

60    Label label = (Label)
findComponentByContent(tester.getLastRenderedPage(), "Properties",
Label.class);
61    // getPath() will start with 0: which indicates the page
62    tester.clickLink(label.getParent().getPath().substring(2));

The label returned on line 60 is null, throwing a NullPointerException on
line 62. (It seems that the label is not found on the last rendered page)

In gs-kml KmlTest.testRelativeLinks():

junit.framework.ComparisonFailure: expected:<[2]> but was:<[1]>
    at junit.framework.Assert.assertEquals(Assert.java:100)
    at junit.framework.Assert.assertEquals(Assert.java:107)
    at
org.custommonkey.xmlunit.XMLAssert.assertXpathEvaluatesTo(XMLAssert.java:858)
    at org.geoserver.kml.KMLTest.testRelativeLinks(KMLTest.java:391)

391    assertXpathEvaluatesTo("2", "count(//kml:Folder/kml:NetworkLink)",
dom);

It looks like two links are expected (A "next" and a "previous" )but only
one is found. Looking at the dom, it seems that this is a "previous" link,
suggesting that we are on the last page.
This issue at least seems like it might be related to the number of results
returned (Which could in turn be related to the PropertyDataStore
implementation), but it is a bit odd that similar problems haven't shown up
elswhere if this is the case.

Does anyone know anything that could cause a change in PropertyDataStore to
affect the UI like this?

Torben Barsballe
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to