MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / answer

Method answer

test/BaseTestRegionClient.java:107–114  ·  view source on GitHub ↗
(InvocationOnMock invocation)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getRemoteAddressMethod · 0.95

Tested by

no test coverage detected