@Override protected void tearDown() throws Exception { senderProtocolObjects.destroy(); receiverProtocolObjects.destroy(); logger.info("Test completed"); super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); senderProtocolObjects = new ProtocolObjects("forward-sender", "gov.nist", TRANSPORT, AUTODIALOG, null, null, null); receiverProtocolObjects = new ProtocolObjects("receiver", "gov.nist", TRANSPORT, AUTODIALOG, null, null, null); }
@Override protected void setUp() { try { super.sipIpAddress = "0.0.0.0"; super.setUp(); senderProtocolObjects = new ProtocolObjects("reinvite", "gov.nist", TRANSPORT, AUTODIALOG, null); sender = new TestSipListener(5080, 5070, senderProtocolObjects, false); SipProvider senderProvider = sender.createProvider(); senderProvider.addSipListener(sender); senderProtocolObjects.start(); } catch (Exception ex) { ex.printStackTrace(); fail("unexpected exception "); } }
public void testNoAppDeployed404() throws Exception { tomcat.addSipConnector(serverName, sipIpAddress, 5060, listeningPointTransport); super.tomcat.startTomcat(); sender = new TestSipListener(5080, 5060, senderProtocolObjects, true); SipProvider senderProvider = sender.createProvider(); senderProvider.addSipListener(sender); senderProtocolObjects.start(); String fromName = "sender"; String fromHost = "sip-servlets.com"; SipURI fromAddress = senderProtocolObjects.addressFactory.createSipURI(fromName, fromHost); String toUser = "******"; String toHost = "" + System.getProperty("org.mobicents.testsuite.testhostaddr") + ""; SipURI toAddress = senderProtocolObjects.addressFactory.createSipURI(toUser, toHost); sender.sendSipRequest("INVITE", fromAddress, toAddress, null, null, true); Thread.sleep(TIMEOUT); assertEquals(404, sender.getFinalResponseStatus()); }
@Override public void setUp() throws Exception { super.setUp(); }