@Test public void testGetSupportedCrsURIs() throws Exception { Set<String> expected = Stream.of( "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: "http: .collect(Collectors.toSet()); Set<String> actual = service.getSupportedCrsURIs("placenames"); List<String> expectedList = new ArrayList<>(expected); List<String> actualList = new ArrayList<>(actual); Collections.sort(expectedList); Collections.sort(actualList); assertIterablesEquals(expectedList, actualList); }
public Set<String> getSupportedCrsURIs(String collectionId) throws NoSuchElementException { return getCollection(collectionId) .map(collection -> collection.getCrs()) .map(list -> (Set<String>) new HashSet<>(list)) .orElseThrow(() -> new NoSuchElementException()); }
WFS3Service { public Set<String> getSupportedCrsURIs(String collectionId) throws NoSuchElementException { return getCollection(collectionId) .map(collection -> collection.getCrs()) .map(list -> (Set<String>) new HashSet<>(list)) .orElseThrow(() -> new NoSuchElementException()); } }
WFS3Service { public Set<String> getSupportedCrsURIs(String collectionId) throws NoSuchElementException { return getCollection(collectionId) .map(collection -> collection.getCrs()) .map(list -> (Set<String>) new HashSet<>(list)) .orElseThrow(() -> new NoSuchElementException()); } @JsonCreator  WFS3Service(@JsonProperty(value="reqClasses") WFS3ReqClasses reqClasses,
            @JsonProperty(value="content") WFS3Content content); }
WFS3Service { public Set<String> getSupportedCrsURIs(String collectionId) throws NoSuchElementException { return getCollection(collectionId) .map(collection -> collection.getCrs()) .map(list -> (Set<String>) new HashSet<>(list)) .orElseThrow(() -> new NoSuchElementException()); } @JsonCreator  WFS3Service(@JsonProperty(value="reqClasses") WFS3ReqClasses reqClasses,
            @JsonProperty(value="content") WFS3Content content); static WFS3Service fromURL(String url); static WFS3Service fromURL(String url, String user, String pass); static byte[] toJSON(WFS3Service service); static WFS3Service fromJSON(byte[] b); boolean conformsTo(WFS3ConformanceClass req); List<WFS3CollectionInfo> getCollections(); Optional<WFS3CollectionInfo> getCollection(String id); Set<String> getSupportedFormats(String collectionId); Set<String> getSupportedCrsURIs(String collectionId); Set<String> getSupportedEpsgCodes(String collectionId); @Override boolean equals(Object obj); }
WFS3Service { public Set<String> getSupportedCrsURIs(String collectionId) throws NoSuchElementException { return getCollection(collectionId) .map(collection -> collection.getCrs()) .map(list -> (Set<String>) new HashSet<>(list)) .orElseThrow(() -> new NoSuchElementException()); } @JsonCreator  WFS3Service(@JsonProperty(value="reqClasses") WFS3ReqClasses reqClasses,
            @JsonProperty(value="content") WFS3Content content); static WFS3Service fromURL(String url); static WFS3Service fromURL(String url, String user, String pass); static byte[] toJSON(WFS3Service service); static WFS3Service fromJSON(byte[] b); boolean conformsTo(WFS3ConformanceClass req); List<WFS3CollectionInfo> getCollections(); Optional<WFS3CollectionInfo> getCollection(String id); Set<String> getSupportedFormats(String collectionId); Set<String> getSupportedCrsURIs(String collectionId); Set<String> getSupportedEpsgCodes(String collectionId); @Override boolean equals(Object obj);  }