| java.lang.Object com.sun.midp.i3test.TestCase javax.microedition.sip.TestSubscribeNotify
TestSubscribeNotify | public class TestSubscribeNotify extends TestCase implements SipClientConnectionListener,SipServerConnectionListener(Code) | | Test for SUBSCRIBE request.
Let's suppose that there are two applications A and B exchanging
SIP messages. Each application contains UAS and UAC. The corresponding
connection notifier, server connection and client connection will be
designated as NA, SA, CA and NB, SB, CB for A and B respectively.
This test implements the following call flow:
CA will send SUBSCRIBE
NB will receive SUBSCRIBE
SB will send 200 OK
CA will receive 200 OK
CB will send NOTIFY
NA will receive NOTIFY
SA will send 200 OK
CB will receive 200 OK
|
notifyRequest | public void notifyRequest(SipConnectionNotifier scnLocal)(Code) | | Accept a new connection request and process the request from client.
Send "OK" to client.
This method is declared in SipServerConnectionListener
The code was copied from TestSipOriginatingInvite
Parameters: scnLocal - Local SIP connection notifier |
runTests | public void runTests()(Code) | | Run the tests.
|
testSubscribe | public void testSubscribe()(Code) | | Test for SUBSCRIBE/NOTIFY.
|
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)
|
|
|