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

Method answer

test/BaseTestSecureRpcHelper.java:161–169  ·  view source on GitHub ↗
(final InvocationOnMock invocation)

Source from the content-addressed store, hash-verified

159 when(sasl_client.unwrap(any(byte[].class), anyInt(), anyInt()))
160 .thenAnswer(new Answer<byte[]>() {
161 @Override
162 public byte[] answer(final InvocationOnMock invocation)
163 throws Throwable {
164 final byte[] buffer = (byte[])invocation.getArguments()[0];
165 final int length = (Integer)invocation.getArguments()[2];
166 final byte[] unwrapped = new byte[length - 4];
167 System.arraycopy(buffer, 4, unwrapped, 0, length - 4);
168 return unwrapped;
169 }
170 });
171 }
172

Callers

nothing calls this directly

Calls 2

setIntMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected