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

Method wrap

test/TestSecureRpcHelper.java:176–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174 }
175
176 @Test
177 public void wrap() throws Exception {
178 setupWrap();
179 final ChannelBuffer buf = getBuffer(unwrapped_payload);
180 config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY,
181 "kerberos");
182 config.overrideConfig(SecureRpcHelper.RPC_QOP_KEY, "Integrity");
183 final UTHelper helper = new UTHelper(client, region_client, remote_endpoint);
184 final ChannelBuffer wrapped = helper.wrap(buf);
185 assertArrayEquals(wrapped.array(), getBuffer(wrapped_payload).array());
186 assertFalse(wrapped == buf);
187 }
188
189 @Test
190 public void wrapNotWrapped() throws Exception {

Callers 4

header094Method · 0.45
setupWrapMethod · 0.45
wrapNotWrappedMethod · 0.45
wrapExceptionMethod · 0.45

Calls 3

setupWrapMethod · 0.80
getBufferMethod · 0.80
overrideConfigMethod · 0.45

Tested by

no test coverage detected