Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package test.unit.gov.nist.javax.sip.stack.timeoutontermineted;
 
 
 import  junit.framework.TestCase;
 

Author(s):
Bartosz Baranowski
public class TimeoutOnTerminatedTest extends TestCase {
    protected Shootist shootist;
    protected Shootme shootme;
    private static Logger logger = Logger.getLogger("test.tck");
    protected static final Appender console = new ConsoleAppender(new SimpleLayout());
    // private Appender appender;
    public TimeoutOnTerminatedTest() {
        super("timeoutontermineted");
    }
    @Override
    public void setUp() {
        try {
            super.setUp();
             = new Shootist(5060, 5080);
            SipProvider shootistProvider = .createSipProvider();
            shootistProvider.addSipListener();
             = new Shootme(5080, 1000);
            SipProvider shootmeProvider = .createProvider();
            shootmeProvider.addSipListener();
            .debug("setup completed");
        } catch (Exception ex) {
            fail("unexpected exception ");
        }
    }
    @Override
    public void tearDown() {
        try {
            Thread.sleep(60000);
            this..checkState();
            this..checkState();
            this..stop();
            this..stop();
        } catch (Exception ex) {
            ex.printStackTrace();
            .error("unexpected exception"ex);
            fail("unexpected exception ");
        }
    }
    public void testInvite() throws Exception {
        this..sendInvite();
    }
New to GrepCode? Check out our FAQ X