()
| 274 | } |
| 275 | |
| 276 | @Test |
| 277 | public void channelConnected090() throws Exception { |
| 278 | RegionClient rclient = mock(RegionClient.class, Mockito.RETURNS_DEEP_STUBS); |
| 279 | ChannelBuffer header = mock(ChannelBuffer.class); |
| 280 | |
| 281 | hbase_client.has_root = true; |
| 282 | when(cse.getChannel()).thenReturn(chan); |
| 283 | PowerMockito.mockStatic(System.class); |
| 284 | PowerMockito.when(System.getProperty("org.hbase.async.cdh3b3")) |
| 285 | .thenReturn(null); |
| 286 | PowerMockito.doNothing().when(rclient, "helloRpc", chan, header); |
| 287 | PowerMockito.when(rclient, "header090").thenReturn(header); |
| 288 | PowerMockito.field(RegionClient.class, "hbase_client") |
| 289 | .set(rclient, hbase_client); |
| 290 | PowerMockito.when(rclient, "channelConnected", ctx, cse) |
| 291 | .thenCallRealMethod(); |
| 292 | |
| 293 | rclient.channelConnected(ctx, cse); |
| 294 | |
| 295 | verifyPrivate(rclient).invoke("header090"); |
| 296 | verifyPrivate(rclient).invoke("helloRpc", chan, header); |
| 297 | } |
| 298 | |
| 299 | @Test |
| 300 | public void channelConnected94Secure() throws Exception { |
nothing calls this directly
no test coverage detected