Search in sources :

Example 1 with ReviewJson

use of org.eclipse.openvsx.json.ReviewJson in project openvsx by eclipse.

the class RegistryAPITest method reviewJson.

private String reviewJson(Consumer<ReviewJson> content) throws JsonProcessingException {
    var json = new ReviewJson();
    content.accept(json);
    return new ObjectMapper().writeValueAsString(json);
}
Also used : ReviewJson(org.eclipse.openvsx.json.ReviewJson) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ReviewJson (org.eclipse.openvsx.json.ReviewJson)1