()
| 375 | // discoverRegion |
| 376 | |
| 377 | @Test |
| 378 | public void discoverRegionNewRegionInfo() throws Exception { |
| 379 | clearCaches(); |
| 380 | final Object obj = Whitebox.invokeMethod(client, "discoverRegion", |
| 381 | metaRow()); |
| 382 | assertNotNull(obj); |
| 383 | final RegionClient region_client = (RegionClient)obj; |
| 384 | assertEquals(1, regions_cache.size()); |
| 385 | assertEquals(1, region2client.size()); |
| 386 | assertEquals(1, client2regions.size()); |
| 387 | assertEquals("127.0.0.1:54321", region_client.getRemoteAddress()); |
| 388 | assertTrue(region_client == region2client.values().iterator().next()); |
| 389 | PowerMockito.verifyPrivate(client, never()).invoke("invalidateRegionCache", |
| 390 | (byte[])any(), anyBoolean(), anyString()); |
| 391 | } |
| 392 | |
| 393 | @Test |
| 394 | public void discoverRegionReplaceRegionInfo() throws Exception { |
nothing calls this directly
no test coverage detected