use of org.graylog2.bindings.providers.MongoJackObjectMapperProvider in project graylog2-server by Graylog2.
the class ClusterEventCleanupPeriodicalTest method setUpService.
@Before
public void setUpService() throws Exception {
DateTimeUtils.setCurrentMillisFixed(TIME.getMillis());
this.mongoConnection = mongoRule.getMongoConnection();
MongoJackObjectMapperProvider provider = new MongoJackObjectMapperProvider(objectMapper);
this.clusterEventCleanupPeriodical = new ClusterEventCleanupPeriodical(provider, mongoRule.getMongoConnection());
}
use of org.graylog2.bindings.providers.MongoJackObjectMapperProvider in project graylog2-server by Graylog2.
the class ClusterEventPeriodicalTest method setUpService.
@Before
public void setUpService() throws Exception {
DateTimeUtils.setCurrentMillisFixed(TIME.getMillis());
this.mongoConnection = mongoRule.getMongoConnection();
MongoJackObjectMapperProvider provider = new MongoJackObjectMapperProvider(objectMapper);
when(nodeId.toString()).thenReturn("ID");
this.clusterEventPeriodical = new ClusterEventPeriodical(provider, mongoRule.getMongoConnection(), nodeId, new ChainingClassLoader(getClass().getClassLoader()), serverEventBus, clusterEventBus);
}
use of org.graylog2.bindings.providers.MongoJackObjectMapperProvider in project graylog2-server by Graylog2.
the class DecoratorServiceImplTest method setUp.
@Before
public void setUp() {
final ObjectMapperProvider objectMapperProvider = new ObjectMapperProvider();
final MongoJackObjectMapperProvider provider = new MongoJackObjectMapperProvider(objectMapperProvider.get());
decoratorService = new DecoratorServiceImpl(mongoRule.getMongoConnection(), provider);
}
use of org.graylog2.bindings.providers.MongoJackObjectMapperProvider in project graylog2-server by Graylog2.
the class ClusterConfigServiceImplTest method setUpService.
@Before
public void setUpService() throws Exception {
DateTimeUtils.setCurrentMillisFixed(TIME.getMillis());
this.mongoConnection = mongoRule.getMongoConnection();
MongoJackObjectMapperProvider provider = new MongoJackObjectMapperProvider(objectMapper);
when(nodeId.toString()).thenReturn("ID");
this.clusterConfigService = new ClusterConfigServiceImpl(provider, mongoRule.getMongoConnection(), nodeId, new ChainingClassLoader(getClass().getClassLoader()), clusterEventBus);
}
use of org.graylog2.bindings.providers.MongoJackObjectMapperProvider in project graylog2-server by Graylog2.
the class BundleServiceTest method setUp.
@Before
public void setUp() throws Exception {
final ObjectMapper objectMapper = new ObjectMapperProvider().get();
bundleService = new BundleService(new MongoJackObjectMapperProvider(objectMapper), mongoRule.getMongoConnection(), bundleImporterProvider, bundleExporterProvider);
}
Aggregations