Search in sources :

Example 1 with AsyncAPIDAO

use of com.yahoo.elide.async.service.dao.AsyncAPIDAO in project elide by yahoo.

the class AsyncCleanerServiceTest method setupMocks.

@BeforeAll
public void setupMocks() {
    Elide elide = mock(Elide.class);
    AsyncAPIDAO dao = mock(DefaultAsyncAPIDAO.class);
    AsyncCleanerService.init(elide, 5, 60, 300, dao);
    service = AsyncCleanerService.getInstance();
}
Also used : AsyncAPIDAO(com.yahoo.elide.async.service.dao.AsyncAPIDAO) DefaultAsyncAPIDAO(com.yahoo.elide.async.service.dao.DefaultAsyncAPIDAO) Elide(com.yahoo.elide.Elide) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

Elide (com.yahoo.elide.Elide)1 AsyncAPIDAO (com.yahoo.elide.async.service.dao.AsyncAPIDAO)1 DefaultAsyncAPIDAO (com.yahoo.elide.async.service.dao.DefaultAsyncAPIDAO)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1