diff --git a/src/test/java/com/application/munera/services/ExpenseServiceTest.java b/src/test/java/com/application/munera/services/ExpenseServiceTest.java index 0b2e126..3008c96 100644 --- a/src/test/java/com/application/munera/services/ExpenseServiceTest.java +++ b/src/test/java/com/application/munera/services/ExpenseServiceTest.java @@ -41,7 +41,7 @@ class ExpenseServiceTest { } @Test - public void testFetchExpensesForDashboard_NoExpenses() { + void testFetchExpensesForDashboard_NoExpenses() { when(expenseRepository.findExpensesByPayerAndBeneficiaryAndYear(loggedInPerson.getId(), year.getValue())) .thenReturn(new ArrayList<>()); when(expenseRepository.findExpensesByBeneficiaryAndYear(loggedInPerson.getId(), year.getValue())) diff --git a/src/test/java/com/application/munera/services/PersonServiceTest.java b/src/test/java/com/application/munera/services/PersonServiceTest.java index a5715b0..c176d59 100644 --- a/src/test/java/com/application/munera/services/PersonServiceTest.java +++ b/src/test/java/com/application/munera/services/PersonServiceTest.java @@ -38,10 +38,6 @@ class PersonServiceTest { person2.setLastName("second"); person2.setFirstName("person"); -// Person person3 = new Person(); -// person3.setLastName("third"); -// person3.setFirstName("person"); - Expense expense1 = mock(Expense.class); when(expense1.getPayer()).thenReturn(person); when(expense1.getBeneficiary()).thenReturn(person2); @@ -180,5 +176,4 @@ class PersonServiceTest { // Assert assertEquals(new BigDecimal("-50.00"), totalDebt); } - } \ No newline at end of file