Skip to content

Commit

Permalink
fix: include main topic id in the response
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Jun 10, 2024
1 parent 7e94b30 commit 0bfb9cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ public void retrieveData_Should_ReturnUserDataWithSessions_When_ProvidedWithUser
.status(SessionStatus.NEW)
.build());
when(sessionService.findSessionsByUser(Mockito.any(User.class))).thenReturn(inputSessions);
when(sessionTopicEnrichmentService.enrichSessionWithTopicData(Mockito.any(SessionDTO.class))).thenAnswer(invocation -> invocation.getArgument(0));
when(sessionTopicEnrichmentService.enrichSessionWithTopicData(Mockito.any(SessionDTO.class)))
.thenAnswer(invocation -> invocation.getArgument(0));
Set<SessionDTO> sessions = askerDataProvider.retrieveData(USER).getSessions();

assertEquals(2, sessions.size());
Expand Down

0 comments on commit 0bfb9cb

Please sign in to comment.