Example #1
0
  protected void tearDown() throws Exception {
    // Cancello dal DB la classe inserita
    try { // Call Web Service Operation
      ws.didattica.driver.testclient.WSTestService service =
          new ws.didattica.driver.testclient.WSTestService();
      ws.didattica.driver.testclient.WSTest port = service.getWSTestPort();
      // TODO initialize WS operation arguments here

      port.eliminaClasse(classeDaAggiungere.getId());

    } catch (Exception ex) {
      // TODO handle custom exceptions here
    }

    // Cancello dal DB la classe da cancellare (il test di cancellazione puo' fallire)
    try { // Call Web Service Operation
      ws.didattica.driver.testclient.WSTestService service =
          new ws.didattica.driver.testclient.WSTestService();
      ws.didattica.driver.testclient.WSTest port = service.getWSTestPort();
      // TODO initialize WS operation arguments here

      port.eliminaClasse(classeDaCancellare.getId());
    } catch (Exception ex) {
      // TODO handle custom exceptions here
    }
  }