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

Method getDeferredRootAdd

test/TestZKClient.java:156–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154 }
155
156 @Test
157 public void getDeferredRootAdd() throws Exception {
158 deferred_rootregion = new ArrayList<Deferred<Object>>(2);
159 deferred_rootregion.add(new Deferred<Object>());
160 Whitebox.setInternalState(zk_client, "deferred_rootregion", deferred_rootregion);
161
162 final Deferred<Object> root = zk_client.getDeferredRoot();
163 assertNotNull(root);
164 assertNotNull(deferred_rootregion);
165 assertEquals(2, deferred_rootregion.size());
166 verifyPrivate(zk_client).invoke("connectZK");
167 }
168
169 @Test
170 public void getDeferredRootIfBeingLookedUpNull() throws Exception {

Callers

nothing calls this directly

Calls 3

addMethod · 0.45
getDeferredRootMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected