(InvocationOnMock invocation)
| 175 | |
| 176 | PowerMockito.doAnswer(new Answer<RegionClient>(){ |
| 177 | @Override |
| 178 | public RegionClient answer(InvocationOnMock invocation) throws Throwable { |
| 179 | final Object[] args = invocation.getArguments(); |
| 180 | final String endpoint = (String)args[0] + ":" + (Integer)args[1]; |
| 181 | final RegionClient rc = mock(RegionClient.class); |
| 182 | when(rc.getRemoteAddress()).thenReturn(endpoint); |
| 183 | client2regions.put(rc, new ArrayList<RegionInfo>()); |
| 184 | region_clients.add(rc); |
| 185 | return rc; |
| 186 | } |
| 187 | }).when(client, "newClient", anyString(), anyInt()); |
| 188 | } |
| 189 |
nothing calls this directly
no test coverage detected