Search in sources :

Example 1 with ApplicationSlaStoreCache

use of com.netflix.titus.api.store.v2.ApplicationSlaStoreCache in project titus-control-plane by Netflix.

the class ApplicationSlaStoreCacheTest method setUp.

@Before
public void setUp() throws Exception {
    when(delegate.findAll()).thenReturn(Observable.from(initSet));
    store = new ApplicationSlaStoreCache(delegate);
    store.enterActiveMode();
}
Also used : ApplicationSlaStoreCache(com.netflix.titus.api.store.v2.ApplicationSlaStoreCache) Before(org.junit.Before)

Example 2 with ApplicationSlaStoreCache

use of com.netflix.titus.api.store.v2.ApplicationSlaStoreCache in project titus-control-plane by Netflix.

the class InMemoryApplicationSlaStoreTest method createStore.

private ApplicationSlaStore createStore() {
    ApplicationSlaStoreCache applicationSlaStoreCache = new ApplicationSlaStoreCache(new InMemoryApplicationSlaStore());
    applicationSlaStoreCache.enterActiveMode();
    return applicationSlaStoreCache;
}
Also used : ApplicationSlaStoreCache(com.netflix.titus.api.store.v2.ApplicationSlaStoreCache)

Aggregations

ApplicationSlaStoreCache (com.netflix.titus.api.store.v2.ApplicationSlaStoreCache)2 Before (org.junit.Before)1