Package com.spotify.helios.serviceregistration

Examples of com.spotify.helios.serviceregistration.ServiceRegistrar


public abstract class ServiceRegistrationTestBase extends SystemTestBase {

  private static final AtomicInteger registryIdCounter = new AtomicInteger();

  protected ServiceRegistrar mockServiceRegistrar() {
    final ServiceRegistrar registrar = mock(ServiceRegistrar.class);
    when(registrar.register(any(ServiceRegistration.class))).thenAnswer(new Answer<Object>() {
      @Override
      public Object answer(final InvocationOnMock invocationOnMock) throws Throwable {
        return mock(ServiceRegistrationHandle.class);
      }
    });
View Full Code Here


public class MockServiceRegistrarFactory implements ServiceRegistrarFactory {

  @Override
  public ServiceRegistrar create(final String address) {
    final ServiceRegistrar registrar = MockServiceRegistrarRegistry.get(address);
    assertNotNull(registrar);
    return registrar;
  }
View Full Code Here

TOP

Related Classes of com.spotify.helios.serviceregistration.ServiceRegistrar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.