Search in sources :

Example 1 with AutoValueSubtypeResolver

use of org.graylog2.jackson.AutoValueSubtypeResolver in project graylog2-server by Graylog2.

the class ContentPackTest method setUp.

@Before
public void setUp() throws Exception {
    objectMapper = new ObjectMapperProvider().get();
    objectMapper.setSubtypeResolver(new AutoValueSubtypeResolver());
}
Also used : AutoValueSubtypeResolver(org.graylog2.jackson.AutoValueSubtypeResolver) ObjectMapperProvider(org.graylog2.shared.bindings.providers.ObjectMapperProvider) Before(org.junit.Before)

Example 2 with AutoValueSubtypeResolver

use of org.graylog2.jackson.AutoValueSubtypeResolver in project graylog2-server by Graylog2.

the class EntityTest method setUp.

@Before
public void setUp() throws Exception {
    objectMapper = new ObjectMapperProvider().get();
    objectMapper.setSubtypeResolver(new AutoValueSubtypeResolver());
}
Also used : AutoValueSubtypeResolver(org.graylog2.jackson.AutoValueSubtypeResolver) ObjectMapperProvider(org.graylog2.shared.bindings.providers.ObjectMapperProvider) Before(org.junit.Before)

Example 3 with AutoValueSubtypeResolver

use of org.graylog2.jackson.AutoValueSubtypeResolver in project graylog2-server by Graylog2.

the class ContentPackResourceTest method setUp.

@Before
public void setUp() {
    objectMapper = new ObjectMapperProvider().get();
    objectMapper.setSubtypeResolver(new AutoValueSubtypeResolver());
    contentPackResource = new PermittedTestResource(contentPackService, contentPackPersistenceService, contentPackInstallationPersistenceService);
}
Also used : AutoValueSubtypeResolver(org.graylog2.jackson.AutoValueSubtypeResolver) ObjectMapperProvider(org.graylog2.shared.bindings.providers.ObjectMapperProvider) Before(org.junit.Before)

Aggregations

AutoValueSubtypeResolver (org.graylog2.jackson.AutoValueSubtypeResolver)3 ObjectMapperProvider (org.graylog2.shared.bindings.providers.ObjectMapperProvider)3 Before (org.junit.Before)3