Search in sources :

Example 1 with AccessTokenJson

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

the class UserAPITest method accessTokenJson.

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

Aggregations

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