use of org.graylog.testing.mongodb.MongoDBTestService in project graylog2-server by Graylog2.
the class EncryptedValueTest method setUp.
@BeforeEach
void setUp(MongoDBTestService mongodb) {
encryptedValueService = new EncryptedValueService("1234567890abcdef");
this.objectMapper = new ObjectMapperProvider(ObjectMapperProvider.class.getClassLoader(), Collections.emptySet(), encryptedValueService, GRNRegistry.createWithBuiltinTypes()).get();
this.dbService = new TestService(mongodb.mongoConnection(), new MongoJackObjectMapperProvider(objectMapper));
}
Aggregations