Skip to content
Snippets Groups Projects
Commit 6faa91c4 authored by Andreas's avatar Andreas Committed by Harry Linrui XU
Browse files

Made method for getting an item from register

parent 6fbe3eea
No related branches found
No related tags found
10 merge requests!43Merging frontend-testing into master,!38"Made progressbar dynamic in accordance to spending. Added balance field....,!37Made the sub progress bars respond to changes in expense,!32Added input validation to add dialog boxes.,!30Redesigned scenes,!29Redesigned scenes,!28Redesigned scenes,!26Redesigned Main menu and expense/income windows,!24Merging frontend-testing with master,!23Merging frontend-testing and master
......@@ -36,6 +36,14 @@ class ExpenseRegisterTest {
}
}
@Test
@DisplayName("getItem does not throw exception when it should not")
void getItemDoesNotThrow(){
Expense expense1 = new Expense("description", 59.9f, false, ExpenseCategory.CLOTHES, "03.03.23");
expenseRegister.addItem(expense1);
assertDoesNotThrow(() -> expenseRegister.getItem(new Expense("description", 59.9f, false, ExpenseCategory.CLOTHES, "03.03.23")));
}
@Nested
@DisplayName("Test removeItem")
class testRemoveItem{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment