Skip to content

Commit

Permalink
Modify mockLogic to call main method
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinityTwo committed Feb 2, 2025
1 parent 345c092 commit 0463d39
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package teammates.sqlui.webapi;

import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.when;

import java.util.UUID;
Expand Down Expand Up @@ -60,6 +61,8 @@ protected void testExecute_withValidNotificationId_shouldReturnData() {

NotificationData output = (NotificationData) jsonResult.getOutput();
verifyNotificationEquals(expected, output);

when(mockLogic.getNotification(testNotification.getId())).thenCallRealMethod();
}

@Test
Expand Down

0 comments on commit 0463d39

Please sign in to comment.