Search in sources :

Example 1 with LocalServiceRegistry

use of com.twitter.common.application.modules.LocalServiceRegistry in project commons by twitter.

the class ServerSetModuleTest method mySetUp.

@Before
public void mySetUp() {
    control = EasyMock.createControl();
    serverSet = control.createMock(ServerSet.class);
    shutdownRegistry = new ShutdownRegistryImpl();
    zooKeeperClient = createZkClient();
    Set<ServiceRunner> localServices = ImmutableSet.of();
    localServiceRegistry = new LocalServiceRegistry(Providers.of(localServices), shutdownRegistry);
}
Also used : LocalServiceRegistry(com.twitter.common.application.modules.LocalServiceRegistry) ServerSet(com.twitter.common.zookeeper.ServerSet) ShutdownRegistryImpl(com.twitter.common.application.ShutdownRegistry.ShutdownRegistryImpl) ServiceRunner(com.twitter.common.application.modules.LifecycleModule.ServiceRunner) Before(org.junit.Before)

Aggregations

ShutdownRegistryImpl (com.twitter.common.application.ShutdownRegistry.ShutdownRegistryImpl)1 ServiceRunner (com.twitter.common.application.modules.LifecycleModule.ServiceRunner)1 LocalServiceRegistry (com.twitter.common.application.modules.LocalServiceRegistry)1 ServerSet (com.twitter.common.zookeeper.ServerSet)1 Before (org.junit.Before)1