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