use of org.eclipse.openvsx.json.SearchResultJson in project openvsx by eclipse.
the class RegistryAPITest method searchJson.
private String searchJson(Consumer<SearchResultJson> content) throws JsonProcessingException {
var json = new SearchResultJson();
json.extensions = new ArrayList<>();
content.accept(json);
return new ObjectMapper().writeValueAsString(json);
}
Aggregations