Ben Caradoc-Davies created GEOT-4081:
----------------------------------------

             Summary: app-schema filtering by xlink:href is broken
                 Key: GEOT-4081
                 URL: https://jira.codehaus.org/browse/GEOT-4081
             Project: GeoTools
          Issue Type: Bug
          Components: app-schema plugin
    Affects Versions: 8.0-RC1
            Reporter: Ben Caradoc-Davies
            Assignee: Rini Angreani


[Pushed upstream from CSIRO Jira issue created 24/Oct/11. See 
https://jira.csiro.au/browse/SISS-1138 (login required)]

FeatureChainingWfsTest.testFilteringXlinkHref() doesn't test filtering 
attributes that were encoded as xlink:href anymore. Perhaps because the data in 
the properties file has changed.
I updated the test and it failed:

{noformat}
    /**
     * Making sure attributes that are encoded as xlink:href can still be 
queried in filters.
     */
    public void testFilteringXlinkHref() {
        String xml = //
        "<wfs:GetFeature " //
                + GETFEATURE_ATTRIBUTES //
                + ">" //
                + " <wfs:Query typeName=\"gsml:MappedFeature\">" //
                + " <ogc:Filter>" //
                + " <ogc:PropertyIsEqualTo>" //
                + " 
<ogc:PropertyName>gsml:specification/gsml:GeologicUnit/gml:name</ogc:PropertyName>"
 //
                + " <ogc:Literal>Yaugher Volcanic Group 2</ogc:Literal>" //
                + " </ogc:PropertyIsEqualTo>" //
                + " </ogc:Filter>" //
                + " </wfs:Query> " //
                + "</wfs:GetFeature>";
        validate(xml);
        Document doc = postAsDOM("wfs", xml);
        LOGGER.info("WFS filter GetFeature response:\n" + prettyString(doc));
        assertEquals("wfs:FeatureCollection", 
doc.getDocumentElement().getNodeName());
        // there should be 2:
        // - mf2/gu.25678
        // - mf3/gu.25678
        assertXpathEvaluatesTo("2", "/wfs:FeatureCollection/@numberOfFeatures", 
doc);
        assertXpathCount(2, "//gsml:MappedFeature", doc);
        assertXpathEvaluatesTo("mf2", "//gsml:MappedFeature[1]/@gml:id", doc);
        assertXpathEvaluatesTo("mf3", "//gsml:MappedFeature[2]/@gml:id", doc);
    }
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to