UnpackParameters extends AbstractParameters implements MultiplePdfSourceTaskParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof UnpackParameters)) { return false; } UnpackParameters parameter = (UnpackParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(output, parameter.getOutput()) .append(sourceList, parameter.getSourceList()).isEquals(); } UnpackParameters(MultipleTaskOutput output); @Override MultipleTaskOutput getOutput(); @Override void addSource(PdfSource<?> input); @Override List<PdfSource<?>> getSourceList(); @Override int hashCode(); @Override boolean equals(Object other);  }
@Test public void testEquals() { UnpackParameters eq1 = new UnpackParameters(output); UnpackParameters eq2 = new UnpackParameters(output); UnpackParameters eq3 = new UnpackParameters(output); UnpackParameters diff = new UnpackParameters(output); diff.setLenient(true); TestUtils.testEqualsAndHashCodes(eq1, eq2, eq3, diff); }