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

Method unwrapException

test/TestSecureRpcHelper.java:164–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 }
163
164 @Test (expected = IllegalStateException.class)
165 public void unwrapException() throws Exception {
166 when(sasl_client.unwrap(any(byte[].class), anyInt(), anyInt()))
167 .thenThrow(new SaslException("Boo!"));
168 config.overrideConfig(SecureRpcHelper.RPC_QOP_KEY, "Integrity");
169 final ChannelBuffer buf = getBuffer(unwrapped_payload);
170 config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY,
171 "kerberos");
172 final UTHelper helper = new UTHelper(client, region_client, remote_endpoint);
173 helper.unwrap(buf);
174 }
175
176 @Test
177 public void wrap() throws Exception {

Callers

nothing calls this directly

Calls 3

getBufferMethod · 0.80
unwrapMethod · 0.45
overrideConfigMethod · 0.45

Tested by

no test coverage detected