Пример #1
0
  @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);
  }