use of org.graylog2.contentpacks.model.entities.RelativeRangeEntity in project graylog2-server by Graylog2.
the class ValueReferenceTypeIdResolverTest method testSerialization.
@Test
public void testSerialization() throws IOException, InvalidRangeParametersException {
final RelativeRangeEntity relativeRange = RelativeRangeEntity.of(RelativeRange.create(300));
final String json = objectMapper.writeValueAsString(relativeRange);
assertThat(json).isNotNull();
}
Aggregations