use of com.yahoo.elide.async.service.DateUtil in project elide by yahoo.
the class AsyncAPICleanerRunnableTest method setupMocks.
@BeforeEach
public void setupMocks() {
HashMapDataStore inMemoryStore = new HashMapDataStore(DefaultClassScanner.getInstance(), AsyncQuery.class.getPackage());
Map<String, Class<? extends Check>> checkMappings = new HashMap<>();
elide = new Elide(new ElideSettingsBuilder(inMemoryStore).withEntityDictionary(EntityDictionary.builder().checks(checkMappings).build()).withISO8601Dates("yyyy-MM-dd'T'HH:mm'Z'", TimeZone.getTimeZone("UTC")).build());
asyncAPIDao = mock(DefaultAsyncAPIDAO.class);
dateUtil = mock(DateUtil.class);
cleanerThread = new AsyncAPICleanerRunnable(7, elide, 7, asyncAPIDao, dateUtil);
}
Aggregations