use of org.graylog2.grok.PaginatedGrokPatternService in project graylog2-server by Graylog2.
the class GrokResourceTest method setUp.
@Before
@SuppressForbidden("Using Executors.newSingleThreadExecutor() is okay in tests")
public void setUp() {
paginatedGrokPatternService = mock(PaginatedGrokPatternService.class);
final ClusterEventBus clusterBus = new ClusterEventBus("cluster-event-bus", Executors.newSingleThreadExecutor());
grokPatternService = new InMemoryGrokPatternService(clusterBus);
subscriber = new GrokPatternsChangedEventSubscriber();
clusterBus.registerClusterEventSubscriber(subscriber);
grokResource = new PermittedTestResource(grokPatternService, paginatedGrokPatternService);
}
Aggregations