Add Domain Test Classes

This commit is contained in:
Ali CANLI
2022-07-10 18:11:53 +03:00
parent 56cdf7191a
commit 1238b3ae6b
20 changed files with 387 additions and 41 deletions

View File

@@ -47,12 +47,13 @@ public class Money {
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof Money money)) return false;
if (o == null || getClass() != o.getClass()) return false;
Money money = (Money) o;
return amount.equals(money.amount);
}
@Override
public int hashCode() {
return amount.hashCode();
return Objects.hash(amount);
}
}