MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / answer

Method answer

test/TestZKClient.java:108–115  ·  view source on GitHub ↗
(InvocationOnMock invocation)

Source from the content-addressed store, hash-verified

106
107 PowerMockito.doAnswer(new Answer<RegionClient>(){
108 @Override
109 public RegionClient answer(InvocationOnMock invocation) throws Throwable {
110 final Object[] args = invocation.getArguments();
111 final String endpoint = (String)args[0] + ":" + (Integer)args[1];
112 final RegionClient rc = mock(RegionClient.class);
113 when(rc.getRemoteAddress()).thenReturn(endpoint);
114 return rc;
115 }
116 }).when(client, "newClient", anyString(), anyInt());
117 }
118

Callers

nothing calls this directly

Calls 1

getRemoteAddressMethod · 0.95

Tested by

no test coverage detected