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

Method wrapException

test/TestSecureRpcHelper.java:201–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 }
200
201 @Test (expected = IllegalStateException.class)
202 public void wrapException() throws Exception {
203 when(sasl_client.wrap(any(byte[].class), anyInt(), anyInt()))
204 .thenThrow(new SaslException("Boo!"));
205 config.overrideConfig(SecureRpcHelper.RPC_QOP_KEY, "Integrity");
206 final ChannelBuffer buf = getBuffer(unwrapped_payload);
207 config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY,
208 "kerberos");
209 final UTHelper helper = new UTHelper(client, region_client, remote_endpoint);
210 helper.wrap(buf);
211 }
212
213 @Test
214 public void processChallenge() throws Exception {

Callers

nothing calls this directly

Calls 3

getBufferMethod · 0.80
wrapMethod · 0.45
overrideConfigMethod · 0.45

Tested by

no test coverage detected