use of org.graylog.plugins.views.search.views.ViewSummaryService in project graylog2-server by Graylog2.
the class SearchesCleanUpJobWithDBServicesTest method setup.
@Before
public void setup(MongoJackObjectMapperProvider mapperProvider) {
DateTimeUtils.setCurrentMillisFixed(DateTime.parse("2018-07-03T13:37:42.000Z").getMillis());
final ViewSummaryService viewService = new TestViewService(mongodb.mongoConnection(), mapperProvider);
this.searchDbService = spy(new SearchDbService(mongodb.mongoConnection(), mapperProvider, dto -> new SearchRequirements(Collections.emptySet(), dto)));
this.searchesCleanUpJob = new SearchesCleanUpJob(viewService, searchDbService, Duration.standardDays(4));
}
Aggregations