|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.test.sip.CATTestCase
public abstract class CATTestCase
A KitCAT testcase must extend this class. It acts as the factory
for creating instances of SIPAgent
and
is responsible for managing these agents. It is also responsible
for synchronous processing of SIP messages that arrive in the
background. A number of assertions can be performed in KitCAT using
the assertThat primitive in JUnit and the matchers that are
provided as part of KitCAT (CATMatchers
).
Method Summary | |
---|---|
SIPAgent |
createAgent(java.lang.String userName)
Create an instance of SIPAgent. |
java.lang.String |
getCallId(Response resp)
Utility method to get the call id from a response |
static Address |
getContactAddress(Response resp)
Utility method to get the contact address from a response |
org.apache.log4j.Logger |
getLogger()
Returns a log4j logger with name KitCAT.Tester. |
void |
init(CATConfig config)
|
void |
init(int listenPort)
Initialize the SIP subsystem. |
void |
init(java.lang.String testName,
java.lang.String outputDir,
int listenPort)
Deprecated. |
void |
init(java.lang.String testName,
java.lang.String outputDir,
java.lang.String listenIP,
int listenPort)
Deprecated. |
void |
processSIP(long timeout)
Process all received SIP messages until timeout expiry. |
void |
release()
Releases all resources including agents. |
void |
releaseAgent(SIPAgent agent)
Releases resources associated with an agent. |
static void |
setSingletonStack()
EXPERIMENTAL. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void init(int listenPort) throws CATException
listenPort
- SIP listen port
CATException
@Deprecated public void init(java.lang.String testName, java.lang.String outputDir, int listenPort) throws CATException
CATException
@Deprecated public void init(java.lang.String testName, java.lang.String outputDir, java.lang.String listenIP, int listenPort) throws CATException
testName
- Name of the test caseoutputDir
- Name of output directory for output files generated by this test caselistenIP
- SIP listen IP addresslistenPort
- SIP listen port
CATException
public void init(CATConfig config) throws CATException
CATException
public static void setSingletonStack()
public org.apache.log4j.Logger getLogger()
public void processSIP(long timeout) throws CATException
timeout
- timeout in milliseconds
CATException
public void release() throws java.lang.Exception
java.lang.Exception
public void releaseAgent(SIPAgent agent) throws CATException
CATException
public SIPAgent createAgent(java.lang.String userName) throws CATException
CATException
public static Address getContactAddress(Response resp)
public java.lang.String getCallId(Response resp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |