Package test.tck

Examples of test.tck.TiUnexpectedError


    try {
      return createRequest(Request.INVITE, tiAddressFactory,
          tiHeaderFactory, tiMessageFactory, tiSipProvider,
          riSipProvider, contentType, contentSubType, content);
    } catch (Throwable exc) {
      throw new TiUnexpectedError(
          "Failed to create a TI->RI invite request", exc);
    }
  }
View Full Code Here


      return createRequest(Request.REGISTER, tiAddressFactory,
          tiHeaderFactory, tiMessageFactory, tiSipProvider,
          riSipProvider, null, null, null);

    } catch (Throwable exc) {
      throw new TiUnexpectedError(
          "Failed to create a TI->RI register request", exc);
    }
  }
View Full Code Here

        eventCollector.collectRequestEvent(riSipProvider);

        tran = tiSipProvider.getNewClientTransaction(invite);
        tran.sendRequest();
      } catch (SipException ex) {
        throw new TiUnexpectedError(
            "A SipExceptionOccurred while trying to send request!",
            ex);
      } catch (TooManyListenersException ex) {
        throw new TckInternalError(
            "Failed to regiest a SipListener with an RI SipProvider",
            ex);
      }
      waitForMessage();
      RequestEvent inviteReceivedEvent = eventCollector
          .extractCollectedRequestEvent();
      assertNotNull("RequestEvent", inviteReceivedEvent);
      try {
        eventCollector.collectTimeoutEvent(tiSipProvider);
      } catch (TooManyListenersException ex) {
        throw new TiUnexpectedError(
            "Failed to register a SipListener with TI", ex);
      }
      waitForTimeout();
      TimeoutEvent timeoutEvent = eventCollector
          .extractCollectedTimeoutEvent();
View Full Code Here

      try {
        eventCollector.collectRequestEvent(tiSipProvider);
        tran = riSipProvider.getNewClientTransaction(invite);
        tran.sendRequest();
      } catch (SipException ex) {
        throw new TiUnexpectedError(
            "A SipExceptionOccurred while trying to send request!",
            ex);
      } catch (TooManyListenersException ex) {
        throw new TckInternalError(
            "Failed to regiest a SipListener with an RI SipProvider",
View Full Code Here

      try {
        eventCollector.collectRequestEvent(tiSipProvider);
        tran = riSipProvider.getNewClientTransaction(invite);
        tran.sendRequest();
      } catch (SipException ex) {
        throw new TiUnexpectedError(
            "A SipExceptionOccurred while trying to send request!",
            ex);
      } catch (TooManyListenersException ex) {
        throw new TckInternalError(
            "Failed to regiest a SipListener with an RI SipProvider",
View Full Code Here

                continue;
            }
            break;
        }
        if (tries >= RETRY_OBJECT_DELETES)
            throw new TiUnexpectedError("Failed to delete tiSipProvider!");

        // Delete TI ListeningPoint
        for (tries = 0; tries < RETRY_OBJECT_DELETES; tries++) {
            try {
                tiSipStack.deleteListeningPoint(tiListeningPoint);
            } catch (ObjectInUseException ex) {
                // System.err.println("Retrying delete of tiListeningPoint!");
                sleep(RETRY_OBJECT_DELETES_AFTER);
                continue;
            }
            break;
        }

        if (tries >= RETRY_OBJECT_DELETES)
            throw new TiUnexpectedError("Failed to delete tiListeningPoint!");
        riSipStack.stop();

        tiSipStack.stop();

View Full Code Here

        try {
            return createRequest(Request.INVITE, tiAddressFactory,
                    tiHeaderFactory, tiMessageFactory, tiSipProvider,
                    riSipProvider, contentType, contentSubType, content);
        } catch (Throwable exc) {
            throw new TiUnexpectedError(
                    "Failed to create a TI->RI invite request", exc);
        }
    }
View Full Code Here

            return createRequest(Request.REGISTER, tiAddressFactory,
                    tiHeaderFactory, tiMessageFactory, tiSipProvider,
                    riSipProvider, null, null, null);

        } catch (Throwable exc) {
            throw new TiUnexpectedError(
                    "Failed to create a TI->RI register request", exc);
        }
    }
View Full Code Here

TOP

Related Classes of test.tck.TiUnexpectedError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.