@Test public void testToString() { SW360Release release = new SW360Release(); release.setName("Test release"); Path path1 = Paths.get("testAttachment.doc"); Path path2 = Paths.get("anotherAttachment.json"); AttachmentUploadRequest<SW360Release> request = AttachmentUploadRequest.builder(release) .addAttachment(path1, SW360AttachmentType.LICENSE_AGREEMENT) .addAttachment(path2, SW360AttachmentType.REQUIREMENT) .build(); String s = request.toString(); assertThat(s).contains(path1.toString(), path2.toString(), release.toString()); }
@Override public String toString() { return "AttachmentUploadRequest{" + "target=" + target + ", items=" + items + '}'; }
AttachmentUploadRequest { @Override public String toString() { return "AttachmentUploadRequest{" + "target=" + target + ", items=" + items + '}'; } }
AttachmentUploadRequest { @Override public String toString() { return "AttachmentUploadRequest{" + "target=" + target + ", items=" + items + '}'; } private  AttachmentUploadRequest(T target, List<Item> items); }
AttachmentUploadRequest { @Override public String toString() { return "AttachmentUploadRequest{" + "target=" + target + ", items=" + items + '}'; } private  AttachmentUploadRequest(T target, List<Item> items); static Builder<T> builder(T target); T getTarget(); List<Item> getItems(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
AttachmentUploadRequest { @Override public String toString() { return "AttachmentUploadRequest{" + "target=" + target + ", items=" + items + '}'; } private  AttachmentUploadRequest(T target, List<Item> items); static Builder<T> builder(T target); T getTarget(); List<Item> getItems(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }