Search in sources :

Example 1 with RelativeRangeEntity

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();
}
Also used : RelativeRangeEntity(org.graylog2.contentpacks.model.entities.RelativeRangeEntity) Test(org.junit.Test)

Aggregations

RelativeRangeEntity (org.graylog2.contentpacks.model.entities.RelativeRangeEntity)1 Test (org.junit.Test)1