use of uk.gov.gchq.koryphe.impl.function.ToString in project Gaffer by gchq.
the class ObjectMapperProviderTest method shouldResolveShortClassNames.
@Test
public void shouldResolveShortClassNames() throws IOException {
// When
ObjectMapper objectMapper = new ObjectMapperProvider().getObjectMapper();
String json = "{" + "\"class\": \"ToString\"" + "}";
// Then
Object deserialised = objectMapper.readValue(json, KorypheFunction.class);
assertEquals(ToString.class, deserialised.getClass());
}
Aggregations