@Override public int hashCode() { return Objects.hashCode(event) ^ Objects.hashCode(event.getMessage()) ^ Objects.hashCode(event.getPointOfFailure()) ^ Arrays.hashCode(event.getStackTrace()); }
@Override public boolean equals(Object obj) { if (obj instanceof TestEventEqualityAdapter) { TestEventEqualityAdapter other = (TestEventEqualityAdapter) obj; return Objects.equal(event, other.event) && Objects.equal(event.getMessage(), other.event.getMessage()) && Objects.equal(event.getPointOfFailure(), other.event.getPointOfFailure()) && Arrays.equals(event.getStackTrace(), other.event.getStackTrace()); } return false; }