use of org.graylog2.streams.OutputServiceImpl in project graylog2-server by Graylog2.
the class OutputFacadeTest method setUp.
@Before
public void setUp() throws Exception {
outputService = new OutputServiceImpl(mongodb.mongoConnection(), new MongoJackObjectMapperProvider(objectMapper), streamService, outputRegistry);
pluginMetaData = new HashSet<>();
outputFactories = new HashMap<>();
outputFactories2 = new HashMap<>();
final LoggingOutput.Factory factory = mock(LoggingOutput.Factory.class);
final LoggingOutput.Descriptor descriptor = mock(LoggingOutput.Descriptor.class);
when(factory.getDescriptor()).thenReturn(descriptor);
outputFactories.put("org.graylog2.outputs.LoggingOutput", factory);
facade = new OutputFacade(objectMapper, outputService, pluginMetaData, outputFactories, outputFactories2);
}
use of org.graylog2.streams.OutputServiceImpl in project graylog2-server by Graylog2.
the class OutputServiceImplTest method setUp.
@Before
public void setUp() throws Exception {
final ObjectMapper objectMapper = new ObjectMapperProvider().get();
final MongoJackObjectMapperProvider mapperProvider = new MongoJackObjectMapperProvider(objectMapper);
outputService = new OutputServiceImpl(mongodb.mongoConnection(), mapperProvider, streamService, outputRegistry);
}
Aggregations