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

Method unwrapNotWrapped

test/TestSecureRpcHelper.java:152–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 }
151
152 @Test
153 public void unwrapNotWrapped() throws Exception {
154 setupUnwrap();
155 final ChannelBuffer buf = getBuffer(unwrapped_payload);
156 config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY,
157 "kerberos");
158 final UTHelper helper = new UTHelper(client, region_client, remote_endpoint);
159 final ChannelBuffer unwrapped = helper.unwrap(buf);
160 assertArrayEquals(unwrapped.array(), getBuffer(unwrapped_payload).array());
161 assertTrue(unwrapped == buf);
162 }
163
164 @Test (expected = IllegalStateException.class)
165 public void unwrapException() throws Exception {

Callers

nothing calls this directly

Calls 4

setupUnwrapMethod · 0.80
getBufferMethod · 0.80
overrideConfigMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected