@Test public void testCreateStreamEntity() { String expectedName = "foo"; String expectedFilename = "bar.txt"; MediaType expectedMediaType = MediaType.TEXT_HTML_TYPE; cut = new StreamDataBodyPart(expectedName, new ByteArrayInputStream(new byte[] {}), expectedFilename, expectedMediaType); boolean actualIsSimpleBodyPart = cut.isSimple(); String actualName = cut.getName(); String actualFilename = cut.getFilename(); MediaType actualMediaType = cut.getMediaType(); assertEquals(expectedName, actualName); assertEquals(expectedMediaType, actualMediaType); assertEquals(expectedFilename, actualFilename); assertFalse(actualIsSimpleBodyPart); }
public String getFilename() { return filename; }
StreamDataBodyPart extends FormDataBodyPart { public String getFilename() { return filename; } }
StreamDataBodyPart extends FormDataBodyPart { public String getFilename() { return filename; } StreamDataBodyPart();  StreamDataBodyPart(final String name, final InputStream streamEntity);  StreamDataBodyPart(final String name, final InputStream streamEntity, final String filename);  StreamDataBodyPart(final String name, final InputStream streamEntity,
                              final String filename,
                              final MediaType mediaType); }
StreamDataBodyPart extends FormDataBodyPart { public String getFilename() { return filename; } StreamDataBodyPart();  StreamDataBodyPart(final String name, final InputStream streamEntity);  StreamDataBodyPart(final String name, final InputStream streamEntity, final String filename);  StreamDataBodyPart(final String name, final InputStream streamEntity,
                              final String filename,
                              final MediaType mediaType); @Override void setValue(final MediaType mediaType, final Object value); @Override void setValue(final String value); @Override void setEntity(final Object entity); void setStreamEntity(final InputStream streamEntity); void setStreamEntity(final InputStream streamEntity, MediaType mediaType); void setFilename(final String filename); InputStream getStreamEntity(); String getFilename(); }
StreamDataBodyPart extends FormDataBodyPart { public String getFilename() { return filename; } StreamDataBodyPart();  StreamDataBodyPart(final String name, final InputStream streamEntity);  StreamDataBodyPart(final String name, final InputStream streamEntity, final String filename);  StreamDataBodyPart(final String name, final InputStream streamEntity,
                              final String filename,
                              final MediaType mediaType); @Override void setValue(final MediaType mediaType, final Object value); @Override void setValue(final String value); @Override void setEntity(final Object entity); void setStreamEntity(final InputStream streamEntity); void setStreamEntity(final InputStream streamEntity, MediaType mediaType); void setFilename(final String filename); InputStream getStreamEntity(); String getFilename();  }