@Test public void equalsTest() { final Step step = new Step(); step.setStepName("1"); final ProcessStep processStep = new ProcessStep(step, "25", "containerName", "workflowId", 0, new AtomicLong(1), new AtomicLong(0)); assertEquals(processStep, new ProcessStep(step, "25", "containerName", "workflowId", 0, new AtomicLong(1), new AtomicLong(0))); assertNotEquals(processStep, new Object()); assertNotEquals(processStep, new ProcessStep(step, "24", "containerName", "workflowId", 2, new AtomicLong(1), new AtomicLong(0))); }
@Override public boolean equals(Object object) { if (object instanceof ProcessStep) { final ProcessStep processStep = (ProcessStep) object; return getId().equals(processStep.getId()) && getStepName().equals(processStep.getStepName()) && getWorkerGroupId().equals(processStep.getWorkerGroupId()); } else { return false; } }
ProcessStep extends Step { @Override public boolean equals(Object object) { if (object instanceof ProcessStep) { final ProcessStep processStep = (ProcessStep) object; return getId().equals(processStep.getId()) && getStepName().equals(processStep.getStepName()) && getWorkerGroupId().equals(processStep.getWorkerGroupId()); } else { return false; } } }
ProcessStep extends Step { @Override public boolean equals(Object object) { if (object instanceof ProcessStep) { final ProcessStep processStep = (ProcessStep) object; return getId().equals(processStep.getId()) && getStepName().equals(processStep.getStepName()) && getWorkerGroupId().equals(processStep.getWorkerGroupId()); } else { return false; } } @VisibleForTesting  ProcessStep(Step step, AtomicLong elementToProcess, AtomicLong elementProcessed, String id);  ProcessStep(Step step, AtomicLong elementToProcess, AtomicLong elementProcessed); @VisibleForTesting  ProcessStep(Step step, String id, String containerName, String workflowId, int position,
        AtomicLong elementToProcess,
        AtomicLong elementProcessed);  ProcessStep(Step step, String containerName, String workflowId, int position,
        AtomicLong elementToProcess,
        AtomicLong elementProcessed);   ProcessStep(); }
ProcessStep extends Step { @Override public boolean equals(Object object) { if (object instanceof ProcessStep) { final ProcessStep processStep = (ProcessStep) object; return getId().equals(processStep.getId()) && getStepName().equals(processStep.getStepName()) && getWorkerGroupId().equals(processStep.getWorkerGroupId()); } else { return false; } } @VisibleForTesting  ProcessStep(Step step, AtomicLong elementToProcess, AtomicLong elementProcessed, String id);  ProcessStep(Step step, AtomicLong elementToProcess, AtomicLong elementProcessed); @VisibleForTesting  ProcessStep(Step step, String id, String containerName, String workflowId, int position,
        AtomicLong elementToProcess,
        AtomicLong elementProcessed);  ProcessStep(Step step, String containerName, String workflowId, int position,
        AtomicLong elementToProcess,
        AtomicLong elementProcessed);   ProcessStep(); @JsonIgnore boolean isBlockingKO(); AtomicLong getElementProcessed(); ProcessStep setElementProcessed(AtomicLong elementProcessed); AtomicLong getElementToProcess(); ProcessStep setElementToProcess(AtomicLong elementToProcess); StatusCode getStepStatusCode(); ProcessStep setStepStatusCode(StatusCode stepStatusCode); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString(); void setLastStep(boolean lastStep); boolean getLastStep(); }
ProcessStep extends Step { @Override public boolean equals(Object object) { if (object instanceof ProcessStep) { final ProcessStep processStep = (ProcessStep) object; return getId().equals(processStep.getId()) && getStepName().equals(processStep.getStepName()) && getWorkerGroupId().equals(processStep.getWorkerGroupId()); } else { return false; } } @VisibleForTesting  ProcessStep(Step step, AtomicLong elementToProcess, AtomicLong elementProcessed, String id);  ProcessStep(Step step, AtomicLong elementToProcess, AtomicLong elementProcessed); @VisibleForTesting  ProcessStep(Step step, String id, String containerName, String workflowId, int position,
        AtomicLong elementToProcess,
        AtomicLong elementProcessed);  ProcessStep(Step step, String containerName, String workflowId, int position,
        AtomicLong elementToProcess,
        AtomicLong elementProcessed);   ProcessStep(); @JsonIgnore boolean isBlockingKO(); AtomicLong getElementProcessed(); ProcessStep setElementProcessed(AtomicLong elementProcessed); AtomicLong getElementToProcess(); ProcessStep setElementToProcess(AtomicLong elementToProcess); StatusCode getStepStatusCode(); ProcessStep setStepStatusCode(StatusCode stepStatusCode); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString(); void setLastStep(boolean lastStep); boolean getLastStep();  }