@Test public void testVisitEndOfHeaders() { TestFileLikePart fileLikePart = new TestFileLikePart(null); try (TestMultipartPart multipartPart = new TestMultipartPart(fileLikePart, new byte[0])) { CounterPartVisitor counterVisitor = new CounterPartVisitor(); multipartPart.visitEndOfHeaders(counterVisitor); assertEquals(counterVisitor.getCount(), 4, "CounterPartVisitor count for visitEndOfHeaders should be equal to 4"); } }
protected void visitEndOfHeaders(PartVisitor visitor) { visitor.withBytes(CRLF_BYTES); visitor.withBytes(CRLF_BYTES); }
MultipartPart implements Closeable { protected void visitEndOfHeaders(PartVisitor visitor) { visitor.withBytes(CRLF_BYTES); visitor.withBytes(CRLF_BYTES); } }
MultipartPart implements Closeable { protected void visitEndOfHeaders(PartVisitor visitor) { visitor.withBytes(CRLF_BYTES); visitor.withBytes(CRLF_BYTES); } MultipartPart(T part, byte[] boundary); }
MultipartPart implements Closeable { protected void visitEndOfHeaders(PartVisitor visitor) { visitor.withBytes(CRLF_BYTES); visitor.withBytes(CRLF_BYTES); } MultipartPart(T part, byte[] boundary); long length(); MultipartState getState(); boolean isTargetSlow(); long transferTo(ByteBuf target); long transferTo(WritableByteChannel target); @Override void close(); }
MultipartPart implements Closeable { protected void visitEndOfHeaders(PartVisitor visitor) { visitor.withBytes(CRLF_BYTES); visitor.withBytes(CRLF_BYTES); } MultipartPart(T part, byte[] boundary); long length(); MultipartState getState(); boolean isTargetSlow(); long transferTo(ByteBuf target); long transferTo(WritableByteChannel target); @Override void close();  }