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

Method ctorSimple

test/TestSecureRpcHelper.java:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 @Test
63 public void ctorSimple() throws Exception {
64 config.overrideConfig(SimpleClientAuthProvider.USERNAME_KEY, "Drumknott");
65 final UTHelper helper = new UTHelper(client, region_client, remote_endpoint);
66 assertTrue(helper.getProvider() instanceof SimpleClientAuthProvider);
67 assertFalse(helper.useWrap());
68 assertEquals("127.0.0.1", helper.getHostIP());
69 assertNull(helper.getSaslClient());
70 }
71
72 @Test (expected = IllegalStateException.class)
73 public void ctorUnknownImplementation() throws Exception {

Callers

nothing calls this directly

Calls 5

getProviderMethod · 0.95
useWrapMethod · 0.95
getHostIPMethod · 0.95
getSaslClientMethod · 0.95
overrideConfigMethod · 0.45

Tested by

no test coverage detected