Package org.cafesip.sipunit

Examples of org.cafesip.sipunit.SipCall.format()


    // to follow what a test is doing since the Sip operations are not
    // buried as parameters in assert statements:

    b.sendIncomingCallResponse(Response.OK, "Answer - Hello world", 0);
    assertLastOperationSuccess("Sending answer response failed - "
        + b.format(), b);

    // note with the single step method, you cannot include operation
    // error details for when the test fails: ' + a.format()' wouldn't
    // work in the first parameter here:
View Full Code Here


    assertLastOperationSuccess("Failure sending ACK - " + a.format(), a);

    Thread.sleep(1000);

    b.listenForDisconnect();
    assertLastOperationSuccess("b listen disc - " + b.format(), b);

    a.disconnect();
    assertLastOperationSuccess("a disc - " + a.format(), a);

    b.waitForDisconnect(10000);
View Full Code Here

    a.disconnect();
    assertLastOperationSuccess("a disc - " + a.format(), a);

    b.waitForDisconnect(10000);
    assertLastOperationSuccess("b wait disc - " + b.format(), b);

    b.respondToDisconnect();
    assertLastOperationSuccess("b disc - " + b.format(), b);

    getBobPhone().unregister(null, 10000);
View Full Code Here

    b.waitForDisconnect(10000);
    assertLastOperationSuccess("b wait disc - " + b.format(), b);

    b.respondToDisconnect();
    assertLastOperationSuccess("b disc - " + b.format(), b);

    getBobPhone().unregister(null, 10000);
  }
 
  /*
 
View Full Code Here

    assertLastOperationSuccess("Caller registration failed - "
        + getAlicePhone().format(), getAlicePhone());

    SipCall callA = getAlicePhone().createSipCall();
    boolean status_ok = callA.initiateOutgoingCall(getBobUri(), null);
    assertTrue("Initiate outgoing call failed - " + callA.format(), status_ok);
       
    callA.waitForAnswer(Response.NOT_FOUND);
   
    callA.getLastReceivedResponse().toString();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.