@Test public void testFrameWriterLogsSaslFramesToSystem() { transport.trace(2); TransportImpl spy = spy(transport); SaslInit init = new SaslInit(); FrameWriter framer = new FrameWriter(encoder, Integer.MAX_VALUE, FrameWriter.SASL_FRAME_TYPE, spy); framer.writeFrame(0, init, null, null); verify(spy).log(eq(TransportImpl.OUTGOING), isA(SaslInit.class)); }
void writeFrame(Object frameBody) { writeFrame(0, frameBody, null, null); }
FrameWriter { void writeFrame(Object frameBody) { writeFrame(0, frameBody, null, null); } }
FrameWriter { void writeFrame(Object frameBody) { writeFrame(0, frameBody, null, null); } FrameWriter(EncoderImpl encoder, int maxFrameSize, byte frameType, TransportImpl transport); }
FrameWriter { void writeFrame(Object frameBody) { writeFrame(0, frameBody, null, null); } FrameWriter(EncoderImpl encoder, int maxFrameSize, byte frameType, TransportImpl transport);  }
FrameWriter { void writeFrame(Object frameBody) { writeFrame(0, frameBody, null, null); } FrameWriter(EncoderImpl encoder, int maxFrameSize, byte frameType, TransportImpl transport);   }