(InvocationOnMock invocation)
| 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)); |
nothing calls this directly
no test coverage detected