@Override public boolean equals(Object o) { if(o == null) return false; if(o.getClass().equals(this.getClass())) { TaskReport report = (TaskReport) o; return counters.equals(report.getTaskCounters()) && Arrays.toString(this.diagnostics) .equals(Arrays.toString(report.getDiagnostics())) && this.finishTime == report.getFinishTime() && this.progress == report.getProgress() && this.startTime == report.getStartTime() && this.state.equals(report.getState()) && this.taskid.equals(report.getTaskID()); } return false; }
@Override public boolean equals(Object o) { if(o == null) return false; if(o.getClass().equals(this.getClass())) { TaskReport report = (TaskReport) o; return counters.equals(report.getTaskCounters()) && Arrays.toString(this.diagnostics) .equals(Arrays.toString(report.getDiagnostics())) && this.finishTime == report.getFinishTime() && this.progress == report.getProgress() && this.startTime == report.getStartTime() && this.state.equals(report.getState()) && this.taskid.equals(report.getTaskID()); } return false; }
@Override public boolean equals(Object o) { if(o == null) return false; if(o.getClass().equals(this.getClass())) { TaskReport report = (TaskReport) o; return counters.equals(report.getTaskCounters()) && Arrays.toString(this.diagnostics) .equals(Arrays.toString(report.getDiagnostics())) && this.finishTime == report.getFinishTime() && this.progress == report.getProgress() && this.startTime == report.getStartTime() && this.state.equals(report.getState()) && this.taskid.equals(report.getTaskID()); } return false; }
@Override public boolean equals(Object o) { if(o == null) return false; if(o.getClass().equals(this.getClass())) { TaskReport report = (TaskReport) o; return counters.equals(report.getTaskCounters()) && Arrays.toString(this.diagnostics) .equals(Arrays.toString(report.getDiagnostics())) && this.finishTime == report.getFinishTime() && this.progress == report.getProgress() && this.startTime == report.getStartTime() && this.state.equals(report.getState()) && this.taskid.equals(report.getTaskID()); } return false; }
@Override public boolean equals(Object o) { if(o == null) return false; if(o.getClass().equals(this.getClass())) { TaskReport report = (TaskReport) o; return counters.equals(report.getTaskCounters()) && Arrays.toString(this.diagnostics) .equals(Arrays.toString(report.getDiagnostics())) && this.finishTime == report.getFinishTime() && this.progress == report.getProgress() && this.startTime == report.getStartTime() && this.state.equals(report.getState()) && this.taskid.equals(report.getTaskId()); } return false; }
assertTrue("Counters of job obtained from history file did not " + "match the expected value", c.equals(jiCounters));
assertTrue("Counters of Task Attempt " + attemptId + " obtained from " + "history file did not match the expected value", c.equals(attempt.getCounters()));
assertTrue("Counters of Task " + tid + " obtained from history file " + " did not match the expected value", c.equals(task.getCounters()));