|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Packages | |
---|---|
org.echarts.test.sip | |
org.echarts.test.sip.commands | |
org.echarts.test.sip.matchers |
This document describes the KitCAT API for testing converged applications. KitCAT is a framework that provides building blocks for testing converged applications. Following are important features in KitCAT:
import org.echarts.test.sip.*; import org.echarts.jain.sip.*; import static org.echarts.test.sip.CATMatchers.*; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; public class TwoWay extends org.echarts.test.sip.CATTestCase { public void test() throws Exception { //init KitCAT with SIP listen port init(33333); SIPAgent caller = createAgent("caller"); SIPAgent callee = createAgent("callee"); caller.setProxy("myappserver.xyz.com"); caller.call(callee); processSIP(3000); assertThat(callee, is (invited())); callee.answer(); processSIP(3000); assertThat(caller, is (connectedTo(callee))); caller.clearMediaBuffer(); callee.playAudio("hello.raw"); processSIP(3000); assertThat(caller, has (incomingMedia())); processSIP(5000); caller.end(); processSIP(3000); assertThat(caller, is (disconnected())); assertThat(callee, is (disconnected())); } }
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |