use of com.netflix.titus.common.model.sanitizer.EntitySanitizer in project titus-control-plane by Netflix.
the class CassandraLoadBalancerStoreTest method getInitdStore.
/**
* Creates, loads, and returns a store instance based on what was already in Cassandra.
*/
private CassandraLoadBalancerStore getInitdStore() {
Session session = cassandraCQLUnit.getSession();
CassandraStoreConfiguration configuration = mock(CassandraStoreConfiguration.class);
when(configuration.getLoadBalancerWriteConcurrencyLimit()).thenReturn(10);
when(configuration.getLoadBalancerDeleteConcurrencyLimit()).thenReturn(1);
EntitySanitizer entitySanitizer = new LoadBalancerSanitizerBuilder().build();
CassandraLoadBalancerStore store = new CassandraLoadBalancerStore(configuration, entitySanitizer, session);
store.init();
return store;
}
Aggregations