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

Method unwrap

test/TestSecureRpcHelper.java:139–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 @Test
140 public void unwrap() throws Exception {
141 setupUnwrap();
142 final ChannelBuffer buf = ChannelBuffers.wrappedBuffer(wrapped_payload);
143 config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY,
144 "kerberos");
145 config.overrideConfig(SecureRpcHelper.RPC_QOP_KEY, "Integrity");
146 final UTHelper helper = new UTHelper(client, region_client, remote_endpoint);
147 final ChannelBuffer unwrapped = helper.unwrap(buf);
148 assertArrayEquals(unwrapped.array(), unwrapped_payload);
149 assertFalse(unwrapped == buf);
150 }
151
152 @Test
153 public void unwrapNotWrapped() throws Exception {

Callers 3

setupUnwrapMethod · 0.45
unwrapNotWrappedMethod · 0.45
unwrapExceptionMethod · 0.45

Calls 2

setupUnwrapMethod · 0.80
overrideConfigMethod · 0.45

Tested by

no test coverage detected