MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / wrapNotWrapped

Method wrapNotWrapped

test/TestSecureRpcHelper.java:189–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 }
188
189 @Test
190 public void wrapNotWrapped() throws Exception {
191 setupWrap();
192 final ChannelBuffer buf = getBuffer(unwrapped_payload);
193 config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY,
194 "kerberos");
195 final UTHelper helper = new UTHelper(client, region_client, remote_endpoint);
196 final ChannelBuffer wrapped = helper.wrap(buf);
197 assertArrayEquals(wrapped.array(), getBuffer(unwrapped_payload).array());
198 assertTrue(wrapped == buf);
199 }
200
201 @Test (expected = IllegalStateException.class)
202 public void wrapException() throws Exception {

Callers

nothing calls this directly

Calls 4

setupWrapMethod · 0.80
getBufferMethod · 0.80
overrideConfigMethod · 0.45
wrapMethod · 0.45

Tested by

no test coverage detected