WFSClient extends AbstractOWSClient<WFSCapabilitiesAdapter> { public WFSVersion getServiceVersion() { return version; } WFSClient( URL capaUrl );  WFSClient( URL capaUrl, AppSchema schema ); WFSVersion getServiceVersion(); List<WFSFeatureType> getFeatureTypes(); WFSFeatureType getFeatureType( QName ftName ); synchronized AppSchema getAppSchema(); GetFeatureResponse<Feature> getFeatures( QName ftName, Filter filter ); GetFeatureResponse<Feature> doGetFeature( GetFeature request ); GMLObject getGMLObject( GetGmlObject request );  }
@Test public void testCapabilitiesExtraction100() throws Exception { String wfsUtahDemo100Url = TestProperties.getProperty( WFS_UTAH_DEMO_100_URL ); if ( wfsUtahDemo100Url == null ) { LOG.warn( "Skipping test, property '" + WFS_UTAH_DEMO_100_URL + "' not found in ~/.deegree-test.properties" ); return; } URL wfsCapaUrl = new URL( wfsUtahDemo100Url ); WFSClient client = new WFSClient( wfsCapaUrl ); assertEquals( WFS_100, client.getServiceVersion() ); ServiceIdentification si = client.getIdentification(); assertEquals( "deegree 3 Utah Demo", si.getName() ); assertEquals( 1, si.getTitles().size() ); assertEquals( "deegree 3 Utah Demo", si.getTitles().get( 0 ).getString() ); assertEquals( null, si.getTitles().get( 0 ).getLanguage() ); assertEquals( 1, si.getAbstracts().size() ); assertEquals( "WMS and WFS demonstration with Utah data", si.getAbstracts().get( 0 ).getString() ); assertEquals( null, si.getAbstracts().get( 0 ).getLanguage() ); assertEquals( 0, si.getKeywords().size() ); assertNull( si.getFees() ); assertEquals( "http: }
@Test public void testCapabilitiesExtraction110() throws Exception { String wfsUtahDemo110Url = TestProperties.getProperty( WFS_UTAH_DEMO_110_URL ); if ( wfsUtahDemo110Url == null ) { LOG.warn( "Skipping test, property '" + WFS_UTAH_DEMO_110_URL + "' not found in ~/.deegree-test.properties" ); return; } URL wfsCapaUrl = new URL( wfsUtahDemo110Url ); WFSClient client = new WFSClient( wfsCapaUrl ); assertEquals( WFS_110, client.getServiceVersion() ); ServiceIdentification si = client.getIdentification(); assertNull( si.getName() ); assertEquals( 1, si.getTitles().size() ); assertEquals( "deegree 3 Utah Demo", si.getTitles().get( 0 ).getString() ); assertEquals( null, si.getTitles().get( 0 ).getLanguage() ); assertEquals( 1, si.getAbstracts().size() ); assertEquals( "WMS and WFS demonstration with Utah data", si.getAbstracts().get( 0 ).getString() ); assertEquals( null, si.getAbstracts().get( 0 ).getLanguage() ); assertEquals( 0, si.getKeywords().size() ); assertNull( si.getFees() ); assertEquals( "lat/lon GmbH", client.getProvider().getProviderName() ); assertEquals( "http: ResponsibleParty sc = client.getProvider().getServiceContact(); assertEquals( "Andreas Schmitz", sc.getIndividualName() ); assertEquals( "Software developer", sc.getPositionName() ); assertEquals( "PointOfContact", sc.getRole().getCode() ); ContactInfo ci = sc.getContactInfo(); assertEquals( "http: assertEquals( "24x7", ci.getHoursOfService() ); assertEquals( "Do not hesitate to call", ci.getContactInstruction() ); Address add = ci.getAddress(); assertEquals( "NRW", add.getAdministrativeArea() ); assertEquals( "Bonn", add.getCity() ); assertEquals( "Germany", add.getCountry() ); assertEquals( 1, add.getDeliveryPoint().size() ); assertEquals( "Aennchenstr. 19", add.getDeliveryPoint().get( 0 ) ); assertEquals( 1, add.getElectronicMailAddress().size() ); assertEquals( "info@lat-lon.de", add.getElectronicMailAddress().get( 0 ) ); assertEquals( "53177", add.getPostalCode() ); }