test_class.declarator: name = "part"
test_class.original_string: String name = "part";
test_class.type: String
test_class.var_name: name
test_class.file: volleyer/src/test/java/com/navercorp/volleyextensions/volleyer/multipart/AbstractPartTest.java
test_class.identifier: AbstractPartTest
test_case.body: @Test
  	public void shouldCloseInputStream() throws IOException {
  		// Given
  		final TestInputStream in = new TestInputStream();
  		AbstractPart mock = createPartWithInputStream(name, in);
  		OutputStream out = mock(OutputStream.class);
  		Part part = new TestPart(name, mock);
  		// When
  		part.write(out);
  		// Then
  		assertThat(in.isClosed(), is(Boolean.TRUE));
  	}
test_case.class_method_signature: AbstractPartTest.shouldCloseInputStream()
test_case.full_signature: @Test public void shouldCloseInputStream()
test_case.identifier: shouldCloseInputStream
test_case.invocations: createPartWithInputStream mock write assertThat isClosed is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCloseInputStream()
focal_class.declarator: CONTENT_DISPOSITION = "Content-Disposition: form-data;".getBytes()
focal_class.modifier: private static final
focal_class.original_string: private static final byte[] CONTENT_DISPOSITION = "Content-Disposition: form-data;".getBytes();
focal_class.type: byte[]
focal_class.var_name: CONTENT_DISPOSITION
focal_class.declarator: DEFAULT_BUFFER_SIZE = 1024
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_BUFFER_SIZE = 1024;
focal_class.type: int
focal_class.var_name: DEFAULT_BUFFER_SIZE
focal_class.declarator: name
focal_class.modifier: private
focal_class.original_string: private String name;
focal_class.type: String
focal_class.var_name: name
focal_class.file: volleyer/src/main/java/com/navercorp/volleyextensions/volleyer/multipart/AbstractPart.java
focal_class.identifier: AbstractPart
focal_class.interfaces: implements Part
focal_class.class_method_signature: AbstractPart.AbstractPart(String name)
focal_class.full_signature: public  AbstractPart(String name)
focal_class.identifier: AbstractPart
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.signature:  AbstractPart(String name)
focal_class.class_method_signature: AbstractPart.write(OutputStream out)
focal_class.full_signature: @Override public void write(OutputStream out)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (OutputStream out)
focal_class.return: void
focal_class.signature: void write(OutputStream out)
focal_class.class_method_signature: AbstractPart.writeName(OutputStream out)
focal_class.full_signature: private void writeName(OutputStream out)
focal_class.identifier: writeName
focal_class.modifiers: private
focal_class.parameters: (OutputStream out)
focal_class.return: void
focal_class.signature: void writeName(OutputStream out)
focal_class.class_method_signature: AbstractPart.writeContentDisposition(OutputStream out)
focal_class.full_signature: private void writeContentDisposition(OutputStream out)
focal_class.identifier: writeContentDisposition
focal_class.modifiers: private
focal_class.parameters: (OutputStream out)
focal_class.return: void
focal_class.signature: void writeContentDisposition(OutputStream out)
focal_class.class_method_signature: AbstractPart.writeContentTypeIfNotNull(OutputStream out)
focal_class.full_signature: private void writeContentTypeIfNotNull(OutputStream out)
focal_class.identifier: writeContentTypeIfNotNull
focal_class.modifiers: private
focal_class.parameters: (OutputStream out)
focal_class.return: void
focal_class.signature: void writeContentTypeIfNotNull(OutputStream out)
focal_class.class_method_signature: AbstractPart.writeExtraHeaderIfNotNull(OutputStream out)
focal_class.full_signature: protected final void writeExtraHeaderIfNotNull(OutputStream out)
focal_class.identifier: writeExtraHeaderIfNotNull
focal_class.modifiers: protected final
focal_class.parameters: (OutputStream out)
focal_class.return: void
focal_class.signature: void writeExtraHeaderIfNotNull(OutputStream out)
focal_class.class_method_signature: AbstractPart.getExtraHeader()
focal_class.full_signature: protected abstract byte[] getExtraHeader()
focal_class.identifier: getExtraHeader
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getExtraHeader()
focal_class.class_method_signature: AbstractPart.writeContent(OutputStream out)
focal_class.full_signature: protected final void writeContent(OutputStream out)
focal_class.identifier: writeContent
focal_class.modifiers: protected final
focal_class.parameters: (OutputStream out)
focal_class.return: void
focal_class.signature: void writeContent(OutputStream out)
focal_class.class_method_signature: AbstractPart.writeLine(OutputStream out, String str)
focal_class.full_signature: @SuppressWarnings("unused") private void writeLine(OutputStream out, String str)
focal_class.identifier: writeLine
focal_class.modifiers: @SuppressWarnings("unused") private
focal_class.parameters: (OutputStream out, String str)
focal_class.return: void
focal_class.signature: void writeLine(OutputStream out, String str)
focal_class.class_method_signature: AbstractPart.writeCRLF(OutputStream out)
focal_class.full_signature: private void writeCRLF(OutputStream out)
focal_class.identifier: writeCRLF
focal_class.modifiers: private
focal_class.parameters: (OutputStream out)
focal_class.return: void
focal_class.signature: void writeCRLF(OutputStream out)
focal_class.class_method_signature: AbstractPart.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_method.body: @Override
  	public void write(OutputStream out) throws IOException {
  		writeContentDisposition(out);
  		writeName(out);
  		writeExtraHeaderIfNotNull(out);
  		writeCRLF(out);
  		writeContentTypeIfNotNull(out);
  		writeCRLF(out);
  		writeContent(out);
  		writeCRLF(out);
  	}
focal_method.class_method_signature: AbstractPart.write(OutputStream out)
focal_method.full_signature: @Override public void write(OutputStream out)
focal_method.identifier: write
focal_method.invocations: writeContentDisposition writeName writeExtraHeaderIfNotNull writeCRLF writeContentTypeIfNotNull writeCRLF writeContent writeCRLF
focal_method.modifiers: @Override public
focal_method.parameters: (OutputStream out)
focal_method.return: void
focal_method.signature: void write(OutputStream out)