@Test public void shouldReturnContentTypeContainingBoundary() { String boundary = "myboundary"; multipart = new Multipart(boundary); String expected = "multipart/form-data; boundary=--" + boundary; String result = multipart.getContentType(); assertThat(result, is(expected)); }
public String getContentType() { return "multipart/form-data; boundary=" + "--" + boundary; }
Multipart implements Collection<Part>, Writable { public String getContentType() { return "multipart/form-data; boundary=" + "--" + boundary; } }
Multipart implements Collection<Part>, Writable { public String getContentType() { return "multipart/form-data; boundary=" + "--" + boundary; } Multipart();  Multipart(String boundary); }
Multipart implements Collection<Part>, Writable { public String getContentType() { return "multipart/form-data; boundary=" + "--" + boundary; } Multipart();  Multipart(String boundary); @Override void write(OutputStream out); String getContentType(); @Override boolean add(Part part); @Override boolean addAll(Collection<? extends Part> collection); @Override void clear(); @Override boolean contains(Object obj); @Override boolean containsAll(Collection<?> collection); @Override boolean isEmpty(); @Override Iterator<Part> iterator(); @Override boolean remove(Object obj); @Override boolean removeAll(Collection<?> collection); @Override boolean retainAll(Collection<?> collection); @Override Object[] toArray(); @SuppressWarnings("hiding") @Override Part[] toArray(Part[] array); @Override int size(); String getBoundary(); }
Multipart implements Collection<Part>, Writable { public String getContentType() { return "multipart/form-data; boundary=" + "--" + boundary; } Multipart();  Multipart(String boundary); @Override void write(OutputStream out); String getContentType(); @Override boolean add(Part part); @Override boolean addAll(Collection<? extends Part> collection); @Override void clear(); @Override boolean contains(Object obj); @Override boolean containsAll(Collection<?> collection); @Override boolean isEmpty(); @Override Iterator<Part> iterator(); @Override boolean remove(Object obj); @Override boolean removeAll(Collection<?> collection); @Override boolean retainAll(Collection<?> collection); @Override Object[] toArray(); @SuppressWarnings("hiding") @Override Part[] toArray(Part[] array); @Override int size(); String getBoundary();  }