On 07/08/15 10:21, Ben Caradoc-Davies wrote: > On 07/08/15 09:23, Ben Caradoc-Davies wrote: >> What happens if getFeatureSource is removed and replaced by >> getFeatureSourceByName? > If I do this I get gt-app-schema unit test failures: > Tests in error: > FeatureChainingTest.setUpBeforeClass:181->loadDataAccesses:768 » > DataSource ur... > GeologicUnitTest.testGetFeatures:171 » DataSource > urn:cgi:xmlns:CGI:GeoSciML:2...
Building GeoServer (against GeoTools built without tests and the getFeatureSource change) I see these failures in gs-app-schema-test: Failed tests: testGetFeatureWithMappingName(org.geoserver.test.FeatureChainingWfsTest): expected:<[wfs:FeatureCollection]> but was:<[ows:ExceptionReport]> testEncodeFeatureMember(org.geoserver.test.FeatureChainingWfsTest): expected:<[http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd urn:cgi:xmlns:CGI:GeoSciML:2.0 http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd]> but was:<[]> testDenormalisedFeaturesCount(org.geoserver.test.FeatureChainingWfsTest): expected:<3> but was:<0> testEncodeFeatureMembers(org.geoserver.test.FeatureChainingWfsTest): expected:<[http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd urn:cgi:xmlns:CGI:GeoSciML:2.0 http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd]> but was:<[]> testNoResolve(org.geoserver.test.LocalResolveFeatureChainingByRefTest): expected:<1> but was:<0> testResolveDepth0(org.geoserver.test.LocalResolveFeatureChainingByRefTest): expected:<1> but was:<0> testResolveDepth1(org.geoserver.test.LocalResolveFeatureChainingByRefTest): expected:<1> but was:<0> testResolveDepth2(org.geoserver.test.LocalResolveFeatureChainingByRefTest): expected:<1> but was:<0> testPropertyEncodingOrder_GeologicUnit(org.geoserver.test.PropertyEncodingOrderTest): expected:<1> but was:<0> testSecureFeatureContent(org.geoserver.test.SecuredFeatureChainingTest): expected:<3> but was:<0> testDenormalisedFeaturesCount(org.geoserver.test.SecuredFeatureChainingTest): expected:<[3]> but was:<[]> Furthermore, I also see the following failures with app-schema pnline tests against postgis (many the same as offline but there are a few more): Failed tests: testGetFeatureWithMappingName(org.geoserver.test.FeatureChainingWfsTest): expected:<[wfs:FeatureCollection]> but was:<[ows:ExceptionReport]> testEncodeFeatureMember(org.geoserver.test.FeatureChainingWfsTest): expected:<[http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd urn:cgi:xmlns:CGI:GeoSciML:2.0 http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd]> but was:<[]> testDenormalisedFeaturesCount(org.geoserver.test.FeatureChainingWfsTest): expected:<3> but was:<0> testEncodeFeatureMembers(org.geoserver.test.FeatureChainingWfsTest): expected:<[http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd urn:cgi:xmlns:CGI:GeoSciML:2.0 http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd]> but was:<[]> testNoResolve(org.geoserver.test.LocalResolveFeatureChainingByRefTest): expected:<1> but was:<0> testResolveDepth0(org.geoserver.test.LocalResolveFeatureChainingByRefTest): expected:<1> but was:<0> testResolveDepth1(org.geoserver.test.LocalResolveFeatureChainingByRefTest): expected:<1> but was:<0> testResolveDepth2(org.geoserver.test.LocalResolveFeatureChainingByRefTest): expected:<1> but was:<0> testGetFeatureWithFilter(org.geoserver.test.PagingTest): expected:<1> but was:<0> testGetFeatureDenormalised(org.geoserver.test.PagingTest): expected:<1> but was:<0> testGetFeatureSortByDenormalised(org.geoserver.test.PagingTest): expected:<2> but was:<0> testPropertyEncodingOrder_GeologicUnit(org.geoserver.test.PropertyEncodingOrderTest): expected:<1> but was:<0> testSecureFeatureContent(org.geoserver.test.SecuredFeatureChainingTest): expected:<3> but was:<0> testDenormalisedFeaturesCount(org.geoserver.test.SecuredFeatureChainingTest): expected:<[3]> but was:<[]> Kind regards, -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ _______________________________________________ GeoTools-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
