Searched refs:byteSink (Results 1 – 2 of 2) sorted by relevance
20 Sink byteSink = EasyMock.createMock(Sink.class); in testForBytes() local22 EasyMock.expect(byteSink.putBytes(EasyMock.aryEq(new byte[] { 4, 3, 2, 1}))) in testForBytes()23 .andReturn(byteSink).once(); in testForBytes()24 EasyMock.replay(byteSink); in testForBytes()26 Funnels.byteArrayFunnel().funnel(new byte[]{4, 3, 2, 1}, byteSink); in testForBytes()28 EasyMock.verify(byteSink); in testForBytes()37 Sink byteSink = EasyMock.createMock(Sink.class); in testForStrings() local39 EasyMock.expect(byteSink.putString("test")).andReturn(byteSink).once(); in testForStrings()40 EasyMock.replay(byteSink); in testForStrings()42 Funnels.stringFunnel().funnel("test", byteSink); in testForStrings()[all …]
79 @Override public void funnel(Object object, Sink byteSink) {80 byteSink.putInt(object.hashCode());