@Test(expected = SessionServiceException.class) public void addSessionWithLessCardsThanRequiredPerUser() { Session session = new SynchronousSession(); session.setOrganizer(user); session.setCategory(category); session.setMinNumberOfCardsPerParticipant(6); session = sessionService.addSession(session); }
@Test(expected = SessionServiceException.class) public void addSessionWithLessMaxCardsThanMinCardsThrowsException() { Session session = new SynchronousSession(); session.setOrganizer(user); session.setCategory(category); session.setMinNumberOfCardsPerParticipant(5); session.setMaxNumberOfCardsPerParticipant(4); sessionService.addSession(session); }