Example #1
0
  @Ignore
  @Test
  public void TEST_DISPLAY_INVITATION_BY_ORGANISATION_ID_SHOULD_RETRUN_LIST() throws SQLException {

    IInvitationDAO invitationDAO = DAOFactory.getInvitationDAO();
    List result = invitationDAO.displayInvitationByOrganisationId(1);
    assertEquals(result.size(), 1);
  }
Example #2
0
  @Ignore
  @Test
  public void TEST_GET_ALL_INVITATIONS_SHOULD_RETRUN_LIST() throws SQLException {

    IInvitationDAO invitationDAO = DAOFactory.getInvitationDAO();
    List result = invitationDAO.getAllInvitations();
    assertEquals(result.size(), 1);
  }
Example #3
0
 @Ignore
 @Test
 public void TEST_CREATE_INVITATION_SHOULD_RETURN_TRUE() throws SQLException {
   IInvitationDAO invitationDAO = DAOFactory.getInvitationDAO();
   Invitation i = new Invitation();
   i.setIdUtilisateur(1);
   i.setIdOrganisation(1);
   i.setEtat(Etat.ATT.name());
   i.setSens("b");
   i.setDateInvitation(new Date(20));
   boolean test = invitationDAO.createInvitation(i);
   assertTrue(test);
 }