@Test public void testGetEndpointAddress() { String endpointServer = "endpointServer"; assertEquals( Joiner.on("/").join(endpointServer, VERSION, "api", "dfa-api", "mockservice"), dfaServiceDescriptor.getEndpointAddress(endpointServer)); }
@Test public void testGetServiceName() { assertEquals("mockservice", dfaServiceDescriptor.getServiceName()); }
@Test public void testGetServiceName_placementStrategy() { DfaServiceDescriptor strategyServiceDescriptor = new DfaServiceDescriptor(PlacementStrategyRemote.class, VERSION); assertEquals("strategy", strategyServiceDescriptor.getServiceName()); }
@Test public void testGetLocatorClass() throws Exception { assertEquals(MockServiceRemoteServiceLocator.class, dfaServiceDescriptor.getLocatorClass()); }