예제 #1
0
파일: TC2.java 프로젝트: asilipo/softfood
  @Test
  public void testValutazioneDisponibilitaBevanda() {
    User user_test = null;
    try {
      user_test = userFacade.login(Ruolo.AMMINISTRATORE, "123456");
    } catch (RemoteException e) {
      fail("RemoteException");
    }

    int test_return = 0;
    try {
      test_return = articoloFacade.selezionaDisponibilitaBevanda(user_test, bevanda.getId());
    } catch (AccessControlException e) {
      test_return = 0;
    } catch (RemoteException e) {
      fail("RemoteException");
    }

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

    assertFalse(test_return > 0);
  }