Search in sources :

Example 1 with OperationsService

use of com.instaclustr.operations.OperationsService in project esop by instaclustr.

the class ManifestTest method setup.

@BeforeMethod
public void setup() throws Exception {
    final List<Module> modules = new ArrayList<Module>() {

        {
            add(new KubernetesApiModule());
            add(new ExecutorsModule());
            add(new CassandraModule());
            add(new JacksonModule());
        }
    };
    final Injector injector = Guice.createInjector(modules);
    injector.injectMembers(this);
    operationsService = new OperationsService(executorServiceSupplier.get());
    cassandra = getCassandra();
    cassandra.start();
    waitForCql();
    session = CqlSession.builder().build();
}
Also used : CassandraModule(com.instaclustr.cassandra.CassandraModule) ExecutorsModule(com.instaclustr.threading.ExecutorsModule) Injector(com.google.inject.Injector) KubernetesApiModule(com.instaclustr.kubernetes.KubernetesApiModule) ArrayList(java.util.ArrayList) Module(com.google.inject.Module) KubernetesApiModule(com.instaclustr.kubernetes.KubernetesApiModule) CassandraModule(com.instaclustr.cassandra.CassandraModule) ExecutorsModule(com.instaclustr.threading.ExecutorsModule) JacksonModule(com.instaclustr.jackson.JacksonModule) JacksonModule(com.instaclustr.jackson.JacksonModule) OperationsService(com.instaclustr.operations.OperationsService) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

Injector (com.google.inject.Injector)1 Module (com.google.inject.Module)1 CassandraModule (com.instaclustr.cassandra.CassandraModule)1 JacksonModule (com.instaclustr.jackson.JacksonModule)1 KubernetesApiModule (com.instaclustr.kubernetes.KubernetesApiModule)1 OperationsService (com.instaclustr.operations.OperationsService)1 ExecutorsModule (com.instaclustr.threading.ExecutorsModule)1 ArrayList (java.util.ArrayList)1 BeforeMethod (org.testng.annotations.BeforeMethod)1