#104 test take part
This commit is contained in:
parent
e6cb991463
commit
1c5c05b5e4
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user