| test.tck.TestHarness test.tck.msgflow.MessageFlowHarness test.tck.msgflow.InviteServerTransactionsStateMachineTest
InviteServerTransactionsStateMachineTest | public class InviteServerTransactionsStateMachineTest extends MessageFlowHarness (Code) | | The test tries to verify that Invite Server Transactions correctly change
states as specified by the rfc3261. The Reference Implementation is used
to send requests and a Tested Implementation ServerTransaction's states are
queried and compared to those in the state machine described in
section 17.2.1 of rfc3261
|INVITE
|pass INV to TU
INVITE V send 100 if TU won't in 200ms
send response+-----------+
+--------| |--------+101-199 from TU
| | Proceeding| |send response
+------->| |<-------+
| | Transport Err.
| | Inform TU
| |--------------->+
+-----------+ |
300-699 from TU | |2xx from TU |
send response | |send response |
| +------------------>+
| |
INVITE V Timer G fires |
send response+-----------+ send response |
+--------| |--------+ |
| | Completed | | |
+------->| |<-------+ |
+-----------+ |
| | |
ACK | | |
- | +------------------>+
| Timer H fires |
V or Transport Err.|
+-----------+ Inform TU |
| | |
| Confirmed | |
| | |
+-----------+ |
| |
|Timer I fires |
|- |
| |
V |
+-----------+ |
| | |
| Terminated|<---------------+
| |
+-----------+
Figure 7: INVITE server transaction
author: Emil Ivov author: Network Research Team, Louis Pasteur University, Strasbourg, France. author: This code is in the public domain. version: 1.0 |
InviteServerTransactionsStateMachineTest | public InviteServerTransactionsStateMachineTest(String name)(Code) | | |
suite | public static Test suite()(Code) | | |
testCanceledInvite | public void testCanceledInvite()(Code) | | JvB: tests CANCEL for an INVITE ST
|
testCaseInsensitiveCanceledInvite | public void testCaseInsensitiveCanceledInvite()(Code) | | JvB: tests CANCEL for an INVITE ST, in case the client changes
the case of the branch id to all lowercvase (NIST used to do this)
|
testNonRFC3261CanceledInvite | public void testNonRFC3261CanceledInvite()(Code) | | JvB: tests CANCEL for an INVITE ST, from an non-RFC3261 client
which uses a Via branch not starting with the magic cookie
|
testProceedingCompletedConfirmedScenario | public void testProceedingCompletedConfirmedScenario()(Code) | | Tries to steer a TI server transaction through the following scenario
Proceeding-->Completed-->Confirmed-->Terminated. Apart from state
transitions, we also test, retransmissions and proper hiding/passing
of messages to the TU.
|
testProceedingTerminatedScenario | public void testProceedingTerminatedScenario()(Code) | | Tries to steer a TI server transaction through the following scenario
Proceeding-->Terminated. Apart from state transitions, we also test,
retransmissions and proper hiding/passing of messages to the TU.
|
Methods inherited from test.tck.msgflow.MessageFlowHarness | protected void addStatus(HeaderFactory headerFactory, Request request)(Code)(Java Doc) protected void addStatus(Request request, Response response)(Code)(Java Doc) protected Request createRequest(String method, AddressFactory addressFactory, HeaderFactory headerFactory, MessageFactory messageFactory, SipProvider srcProvider, SipProvider dstProvider, String contentType, String contentSubType, Object content) throws Exception(Code)(Java Doc) public ContactHeader createRiContact() throws TckInternalError(Code)(Java Doc) protected Request createRiInviteRequest(String contentType, String contentSubType, Object content) throws TckInternalError(Code)(Java Doc) protected Request createRiRegisterRequest() throws TckInternalError(Code)(Java Doc) public ContactHeader createTiContact() throws Exception(Code)(Java Doc) protected Request createTiInviteRequest(String contentType, String contentSubType, Object content) throws TiUnexpectedError(Code)(Java Doc) protected Request createTiRegisterRequest() throws TiUnexpectedError(Code)(Java Doc) public void setUp() throws java.lang.Exception(Code)(Java Doc) protected static void sleep(long sleepFor)(Code)(Java Doc) public void tearDown() throws java.lang.Exception(Code)(Java Doc) public static void waitForMessage()(Code)(Java Doc) protected static void waitForTimeout()(Code)(Java Doc) protected static void waitShortForMessage()(Code)(Java Doc)
|
Methods inherited from test.tck.TestHarness | public static void assertEquals(Object me, Object him)(Code)(Java Doc) public static void assertEquals(String me, String him)(Code)(Java Doc) public static void assertEquals(String reason, Object me, Object him)(Code)(Java Doc) public static void assertEquals(String reason, String me, String him)(Code)(Java Doc) public static void assertNotNull(String reason, Object thing)(Code)(Java Doc) public static void assertNull(String reason, Object thing)(Code)(Java Doc) public static void assertSame(String diagnostic, Object thing, Object thingie)(Code)(Java Doc) public static void assertTrue(boolean cond)(Code)(Java Doc) public static void assertTrue(String diagnostic, boolean cond)(Code)(Java Doc) public static void checkImplementsInterface(Class implementationClass, Class jainInterface)(Code)(Java Doc) public static void fail(String message)(Code)(Java Doc) public static void fail(String message, Exception ex)(Code)(Java Doc) public static void fail()(Code)(Java Doc) protected String getImplementationPath()(Code)(Java Doc) public static Properties getRiProperties(boolean autoDialog)(Code)(Java Doc) public static Properties getTiProperties()(Code)(Java Doc) public static boolean implementsInterface(Class implementationClass, Class jainInterface)(Code)(Java Doc) public void logTestCompleted()(Code)(Java Doc) public void logTestCompleted(String info)(Code)(Java Doc) public void setUp() throws Exception(Code)(Java Doc) public void tearDown() throws Exception(Code)(Java Doc)
|
|
|