@Test @Ignore public void testEquals() { }
@Override public boolean equals(Object o) { boolean result = this == o; if (!result) { if (o instanceof Rental) { Rental other = (Rental) o; result = initialized ? id == other.id : initialized == other.initialized; result &= this.movie.equals(other.movie); result &= this.user.equals(other.user); } } return result; }
Rental { @Override public boolean equals(Object o) { boolean result = this == o; if (!result) { if (o instanceof Rental) { Rental other = (Rental) o; result = initialized ? id == other.id : initialized == other.initialized; result &= this.movie.equals(other.movie); result &= this.user.equals(other.user); } } return result; } }
Rental { @Override public boolean equals(Object o) { boolean result = this == o; if (!result) { if (o instanceof Rental) { Rental other = (Rental) o; result = initialized ? id == other.id : initialized == other.initialized; result &= this.movie.equals(other.movie); result &= this.user.equals(other.user); } } return result; } Rental(IUser aUser, Movie aMovie, int nofRentalDays); private  Rental(IUser aUser, Movie aMovie, int nofRentalDays, Date rentaldate); }
Rental { @Override public boolean equals(Object o) { boolean result = this == o; if (!result) { if (o instanceof Rental) { Rental other = (Rental) o; result = initialized ? id == other.id : initialized == other.initialized; result &= this.movie.equals(other.movie); result &= this.user.equals(other.user); } } return result; } Rental(IUser aUser, Movie aMovie, int nofRentalDays); private  Rental(IUser aUser, Movie aMovie, int nofRentalDays, Date rentaldate); static Rental createRentalFromDb(IUser aUser, Movie aMovie, int nofRentalDays, Date rentalDate); int calcRemainingDaysOfRental(Date date); double getRentalFee(); int getId(); Movie getMovie(); IUser getUser(); Date getRentalDate(); int getRentalDays(); void setId(int anId); void setRentalDays(int nofRentalDays); @Override boolean equals(Object o); @Override int hashCode(); }
Rental { @Override public boolean equals(Object o) { boolean result = this == o; if (!result) { if (o instanceof Rental) { Rental other = (Rental) o; result = initialized ? id == other.id : initialized == other.initialized; result &= this.movie.equals(other.movie); result &= this.user.equals(other.user); } } return result; } Rental(IUser aUser, Movie aMovie, int nofRentalDays); private  Rental(IUser aUser, Movie aMovie, int nofRentalDays, Date rentaldate); static Rental createRentalFromDb(IUser aUser, Movie aMovie, int nofRentalDays, Date rentalDate); int calcRemainingDaysOfRental(Date date); double getRentalFee(); int getId(); Movie getMovie(); IUser getUser(); Date getRentalDate(); int getRentalDays(); void setId(int anId); void setRentalDays(int nofRentalDays); @Override boolean equals(Object o); @Override int hashCode();  }