MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / channelConnected95

Method channelConnected95

test/TestRegionClient.java:235–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233 }
234
235 @Test
236 public void channelConnected95() throws Exception {
237 RegionClient rclient = mock(RegionClient.class, Mockito.RETURNS_DEEP_STUBS);
238 ChannelBuffer header = mock(ChannelBuffer.class);
239
240 hbase_client.has_root = false;
241 when(cse.getChannel()).thenReturn(chan);
242 PowerMockito.when(rclient, "header095").thenReturn(header);
243 PowerMockito.field(RegionClient.class, "hbase_client")
244 .set(rclient, hbase_client);
245 PowerMockito.when(rclient, "channelConnected", ctx, cse).thenCallRealMethod();
246
247 rclient.channelConnected(ctx, cse);
248
249 verifyPrivate(rclient).invoke("header095");
250 verifyPrivate(rclient).invoke("becomeReady", chan,
251 RegionClient.SERVER_VERSION_095_OR_ABOVE);
252 }
253
254 @Test
255 public void channelConnectedCDH3b3() throws Exception {

Callers

nothing calls this directly

Calls 3

channelConnectedMethod · 0.95
getChannelMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected