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

Method disconnectZKInterrupted

test/TestZKClient.java:276–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274 }
275
276 @Test
277 public void disconnectZKInterrupted() throws Exception {
278 Mockito.doThrow(new InterruptedException("Interrupted")).when(zk).close();
279 zk_client.getDeferredRoot();
280 zk_client.disconnectZK();
281 verify(zk).close();
282 assertNull(Whitebox.getInternalState(zk_client, "zk"));
283 }
284
285 @Test (expected = RuntimeException.class)
286 public void disconnectZKUnexpected() throws Exception {

Callers

nothing calls this directly

Calls 3

closeMethod · 0.80
getDeferredRootMethod · 0.45
disconnectZKMethod · 0.45

Tested by

no test coverage detected