AY2425S1-CS2103T-T15-1 / tp

Other
0 stars 5 forks source link

Add and modify JUnit tests for changes in radd command #167

Closed gohsl99 closed 1 week ago

gohsl99 commented 1 week ago

Changes in radd introduced new class and behaviors. JUnit tests need to be updated to reflect the changes.

Details: Add tests for AddRentalDescriptor. Add example AddRentalDescriptor in CommandTestUtil. Add AddRentalDescriptorBuilder to help with testing. Modify AddRentalCommandParserTest to handle optional parameter. Modify equalsMethod() in CustomerListTest, DepositTest, MonthlyRentTest, RentDueDateTest, RentalDateTest to include comparing null value. Modify JsonAdaptedRentalInformationTest to handle null value, instead of throwing exception.