| java.lang.Object com.sun.midp.i3test.TestCase javax.microedition.sip.TestSipCommunication
TestSipCommunication | public class TestSipCommunication extends TestCase implements Runnable(Code) | | Tests for end-to-end SIP client-server communication
|
serverEstablished | boolean serverEstablished(Code) | | Server flag.
|
t1 | Thread t1(Code) | | Thread that is blocked for acceptAndOpen.
|
cleanup | void cleanup()(Code) | | Close all connections.
|
processClientRequest | boolean processClientRequest()(Code) | | Process the client request at server and receive the message
true if the client request is received at serverfalse if the request is not received |
receiveMsgFromServer | boolean receiveMsgFromServer()(Code) | | Receive the message and extract status code at server
true if the status code is OKfalse otherwise |
run | public void run()(Code) | | Accept a new connection request and process the request from client.
|
runTests | public void runTests()(Code) | | Tests execute.
|
sendMsgFromClient | boolean sendMsgFromClient(String msg) throws SipException, IOException(Code) | | Send a SIP message from user agent client to user agent server
SipConnectionNotifier queues the incoming requests if the
instance of SipServerConnection is not available yet
Parameters: msg - message to be sent true if sc is non-null and message is sent successfullyfalse otherwise |
setup | void setup()(Code) | | Open the connection and start the thread to call the run
method. It waits until the InputStream is open before returning.
|
testSipCommunication | public void testSipCommunication()(Code) | | Send request and receive a responce.
|
Methods inherited from com.sun.midp.i3test.TestCase | public void assertEquals(Object expected, Object actual)(Code)(Java Doc) public void assertEquals(String message, Object expected, Object actual)(Code)(Java Doc) public void assertEquals(int expected, int actual)(Code)(Java Doc) public void assertEquals(String message, int expected, int actual)(Code)(Java Doc) public void assertFalse(boolean condition)(Code)(Java Doc) public void assertFalse(String message, boolean condition)(Code)(Java Doc) public void assertNotNull(Object object)(Code)(Java Doc) public void assertNotNull(String message, Object object)(Code)(Java Doc) public void assertNotSame(Object expected, Object actual)(Code)(Java Doc) public void assertNotSame(String message, Object expected, Object actual)(Code)(Java Doc) public void assertNull(Object object)(Code)(Java Doc) public void assertNull(String message, Object object)(Code)(Java Doc) public void assertSame(Object expected, Object actual)(Code)(Java Doc) public void assertSame(String message, Object expected, Object actual)(Code)(Java Doc) public void assertTrue(String message, boolean condition)(Code)(Java Doc) public void assertTrue(boolean condition)(Code)(Java Doc) public void declare(String testName)(Code)(Java Doc) public void fail()(Code)(Java Doc) public void fail(String message)(Code)(Java Doc) protected SecurityToken getSecurityToken()(Code)(Java Doc) protected boolean getVerbose()(Code)(Java Doc) public void info(String s)(Code)(Java Doc) abstract public void runTests() throws Throwable(Code)(Java Doc)
|
|
|