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

Method answer

test/TestSecureRpcHelper94.java:92–99  ·  view source on GitHub ↗
(final InvocationOnMock invocation)

Source from the content-addressed store, hash-verified

90 PowerMockito.mockStatic(Channels.class);
91 PowerMockito.doAnswer(new Answer<Void>() {
92 @Override
93 public Void answer(final InvocationOnMock invocation) throws Throwable {
94 if (buffers == null) {
95 buffers = new ArrayList<ChannelBuffer>(2);
96 }
97 buffers.add((ChannelBuffer)invocation.getArguments()[1]);
98 return null;
99 }
100 }).when(Channels.class);
101 Channels.write(any(Channel.class), any(ChannelBuffer.class));
102

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected