Search in sources :

Example 1 with JoltMapper

use of io.gravitee.rest.api.services.dynamicproperties.provider.http.mapper.JoltMapper in project gravitee-management-rest-api by gravitee-io.

the class JoltMapperTest method test.

@Test
public void test() throws IOException {
    mapper = new JoltMapper(read("/jolt/specification.json"));
    String input = IOUtils.toString(read("/jolt/custom-response.json"), Charset.defaultCharset());
    Collection<DynamicProperty> properties = mapper.map(input);
    assertFalse(properties.isEmpty());
}
Also used : DynamicProperty(io.gravitee.rest.api.services.dynamicproperties.model.DynamicProperty) JoltMapper(io.gravitee.rest.api.services.dynamicproperties.provider.http.mapper.JoltMapper) Test(org.junit.Test)

Aggregations

DynamicProperty (io.gravitee.rest.api.services.dynamicproperties.model.DynamicProperty)1 JoltMapper (io.gravitee.rest.api.services.dynamicproperties.provider.http.mapper.JoltMapper)1 Test (org.junit.Test)1