#104 test take part

This commit is contained in:
Nightblade73 2019-05-14 18:01:50 +04:00
parent e6cb991463
commit 1c5c05b5e4

View File

@ -125,4 +125,12 @@ public class ConferenceServiceTest {
when(userService.getCurrentUser()).thenReturn(user); when(userService.getCurrentUser()).thenReturn(user);
assertEquals(true, conferenceService.isCurrentUserParticipant(conferenceUsers)); assertEquals(true, conferenceService.isCurrentUserParticipant(conferenceUsers));
} }
@Test
public void testTakePart() throws IOException {
when(userService.getCurrentUser()).thenReturn(user);
ConferenceDto newConferenceDto = new ConferenceDto();
conferenceService.takePart(newConferenceDto);
assertEquals(newConferenceDto.getUsers(), conferenceDto.getUsers());
}
} }