Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package test.tck.msgflow.callflows.forkedinvite;
  
  
 
 
 
 import  test.tck.msgflow.callflows.ProtocolObjects;
 import  test.tck.msgflow.callflows.ScenarioHarness;
 
 import  junit.framework.TestCase;

Author(s):
M. Ranganathan
 
 public class AbstractForkedInviteTestCase extends ScenarioHarness implements
         SipListener {
 
 
     protected Shootist shootist;
 
     private static Logger logger = Logger.getLogger("test.tck");
 
 
     protected Shootme shootme;
 
     private Shootme shootme2;
 
 
 
 
     // private Appender appender;
 
     public AbstractForkedInviteTestCase() {
 
         super("forkedInviteTest"true);
 
         try {
             providerTable = new Hashtable();
 
         } catch (Exception ex) {
             .error("unexpected exception"ex);
             fail("unexpected exception ");
         }
     }
 
     public void setUp() {
 
         try {
             super.setUp(false,1,3);
              = new Shootist(5060, 5070, super.getTiProtocolObjects(0));
             SipProvider shootistProvider = .createSipProvider();
             providerTable.put(shootistProvider);
 
             this. = new Shootme(5080, getTiProtocolObjects(1));
             SipProvider shootmeProvider = .createProvider();
             providerTable.put(shootmeProvider);
             shootistProvider.addSipListener(this);
             shootmeProvider.addSipListener(this);
 
 
 
             this. = new Shootme(5090, getTiProtocolObjects(2));
             shootmeProvider = .createProvider();
             providerTable.put(shootmeProvider);
             shootistProvider.addSipListener(this);
             shootmeProvider.addSipListener(this);
 
             Proxy proxy = new Proxy(5070, getRiProtocolObjects(0));
             SipProvider provider = proxy.createSipProvider();
             provider.setAutomaticDialogSupportEnabled(false);
             providerTable.put(providerproxy);
             provider.addSipListener(this);
 
             super.start();
        } catch (Exception ex) {
            ..println(ex.toString());
            fail("unexpected exception ");
        }
    }
    public void tearDown() {
        try {
            Thread.sleep(8000);
            this..checkState();
            this..checkState();
            this..checkState();
            super.tearDown();
            Thread.sleep(2000);
            this..clear();
            super.logTestCompleted();
        } catch (Exception ex) {
            .error("unexpected exception"ex);
            fail("unexpected exception ");
        }
    }
New to GrepCode? Check out our FAQ X