Пример #1
0
  @Test
  public void testSelezioneOrdinazione() throws Exception {
    User user_test = null;
    try {
      user_test = userFacade.login(Ruolo.AMMINISTRATORE, "123456");
    } catch (RemoteException e) {
      fail("RemoteException");
    }

    Ordinazione ordinazione2 = null;
    try {
      ordinazione2 = ordinazioneFacade.selezionaOrdinazionePerId(user_test, null);
    } catch (Exception e) {
      ordinazione2 = null;
    }

    try {
      userFacade.logout(user_test);
    } catch (RemoteException e) {
      fail("RemoteException");
    }

    assertNull(ordinazione2);
  }