Skip to content

Commit

Permalink
test: update arangodb test
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed May 19, 2023
1 parent 59b23db commit 8dfaf13
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,17 @@ public int edition() {

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Book book = (Book) o;
return Objects.equals(id, book.id);
return edition == book.edition
&& Objects.equals(id, book.id)
&& Objects.equals(title, book.title);
}

@Override
public int hashCode() {
return Objects.hashCode(id);
return Objects.hash(id, title, edition);
}

@Override
Expand Down

0 comments on commit 8dfaf13

Please sign in to comment.