Search in sources :

Example 6 with MongoJackObjectMapperProvider

use of org.graylog2.bindings.providers.MongoJackObjectMapperProvider in project graylog2-server by Graylog2.

the class FilterServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    final ObjectMapper objectMapper = new ObjectMapperProvider().get();
    this.filterService = new FilterServiceImpl(mongoRule.getMongoConnection(), new MongoJackObjectMapperProvider(objectMapper));
}
Also used : MongoJackObjectMapperProvider(org.graylog2.bindings.providers.MongoJackObjectMapperProvider) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) MongoJackObjectMapperProvider(org.graylog2.bindings.providers.MongoJackObjectMapperProvider) ObjectMapperProvider(org.graylog2.shared.bindings.providers.ObjectMapperProvider) Before(org.junit.Before)

Aggregations

MongoJackObjectMapperProvider (org.graylog2.bindings.providers.MongoJackObjectMapperProvider)6 Before (org.junit.Before)6 ObjectMapperProvider (org.graylog2.shared.bindings.providers.ObjectMapperProvider)3 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 ChainingClassLoader (org.graylog2.shared.plugins.ChainingClassLoader)2