package org.mobicents.media.server.ctrl.mgcp.test.crcx; import jain.protocol.ip.mgcp.JainMgcpCommandEvent; import org.mobicents.media.server.ctrl.mgcp.test.CA; import org.mobicents.media.server.ctrl.mgcp.test.MgcpMicrocontainerTest; import org.mobicents.mgcp.stack.JainMgcpStackProviderImpl; /** * * @author amit bhayani * */ public class CrcxTestCase extends MgcpMicrocontainerTest { private CA ca; public CrcxTestCase(String name) { super(name); } public void testCRCX() throws Exception { ca = new CA(caProvider); ca.sendSuccessCRCX(); waitForMessage(); this.ca.checkSuccessCRCX(); } public void testFormatNegotiationFailCRCX() throws Exception { ca = new CA(caProvider); ca.sendFormatNegotiationFailCRCX(); waitForMessage(); this.ca.checkFormatNegotiationFailCRCX(); } public void tearDown() { try { super.tearDown(); } catch (Exception ex) { } } private void waitForMessage() { try { Thread.currentThread().sleep(5000); } catch (Exception e) { } } public void processMgcpCommandEvent(JainMgcpCommandEvent arg0) { } }