@Test public void testCollectionsWereParsedCorrectly() throws Exception { List<String> expected = Stream.of("placenames", "places", "mapnames", "placenames_simple") .sorted() .collect(Collectors.toList()); List<String> actual = service.getCollections().stream() .map(WFS3CollectionInfo::getId) .sorted() .collect(Collectors.toList()); assertIterablesEquals(expected, actual); }
public List<WFS3CollectionInfo> getCollections() { return new ArrayList<>(content.getCollections()); }
WFS3Service { public List<WFS3CollectionInfo> getCollections() { return new ArrayList<>(content.getCollections()); } }
WFS3Service { public List<WFS3CollectionInfo> getCollections() { return new ArrayList<>(content.getCollections()); } @JsonCreator  WFS3Service(@JsonProperty(value="reqClasses") WFS3ReqClasses reqClasses,
            @JsonProperty(value="content") WFS3Content content); }
WFS3Service { public List<WFS3CollectionInfo> getCollections() { return new ArrayList<>(content.getCollections()); } @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 List<WFS3CollectionInfo> getCollections() { return new ArrayList<>(content.getCollections()); } @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);  }