@Test public void getServiceType() { ClientConnectionCloser closer = mock(ClientConnectionCloser.class); LeaseServiceConfiguration configuration = new LeaseServiceConfiguration(closer); assertEquals(LeaseService.class, configuration.getServiceType()); }
@Override public Class<LeaseService> getServiceType() { return LeaseService.class; }
LeaseServiceConfiguration implements ServiceConfiguration<LeaseService> { @Override public Class<LeaseService> getServiceType() { return LeaseService.class; } }
LeaseServiceConfiguration implements ServiceConfiguration<LeaseService> { @Override public Class<LeaseService> getServiceType() { return LeaseService.class; } LeaseServiceConfiguration(ClientConnectionCloser clientConnectionCloser); }
LeaseServiceConfiguration implements ServiceConfiguration<LeaseService> { @Override public Class<LeaseService> getServiceType() { return LeaseService.class; } LeaseServiceConfiguration(ClientConnectionCloser clientConnectionCloser); @Override Class<LeaseService> getServiceType(); ClientConnectionCloser getClientConnectionCloser(); }
LeaseServiceConfiguration implements ServiceConfiguration<LeaseService> { @Override public Class<LeaseService> getServiceType() { return LeaseService.class; } LeaseServiceConfiguration(ClientConnectionCloser clientConnectionCloser); @Override Class<LeaseService> getServiceType(); ClientConnectionCloser getClientConnectionCloser();  }