@Test public void testEquals() { SW360Release release1 = new SW360Release(); release1.setName("release1"); SW360Release release2 = new SW360Release(); release2.setName("release2"); EqualsVerifier.forClass(AttachmentUploadRequest.class) .withPrefabValues(SW360HalResource.class, release1, release2) .withNonnullFields("items") .verify(); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AttachmentUploadRequest<?> request = (AttachmentUploadRequest<?>) o; return Objects.equals(getTarget(), request.getTarget()) && items.equals(request.items); }
AttachmentUploadRequest { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AttachmentUploadRequest<?> request = (AttachmentUploadRequest<?>) o; return Objects.equals(getTarget(), request.getTarget()) && items.equals(request.items); } }
AttachmentUploadRequest { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AttachmentUploadRequest<?> request = (AttachmentUploadRequest<?>) o; return Objects.equals(getTarget(), request.getTarget()) && items.equals(request.items); } private  AttachmentUploadRequest(T target, List<Item> items); }
AttachmentUploadRequest { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AttachmentUploadRequest<?> request = (AttachmentUploadRequest<?>) o; return Objects.equals(getTarget(), request.getTarget()) && items.equals(request.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 boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AttachmentUploadRequest<?> request = (AttachmentUploadRequest<?>) o; return Objects.equals(getTarget(), request.getTarget()) && items.equals(request.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();  }