Ejemplo n.º 1
0
 public void testWriteOnMultiThread() throws Exception {
   Skype.setDebug(true);
   Application application = Skype.addApplication(APPLICATION_NAME);
   Friend friend = TestData.getFriend();
   try {
     Stream[] streams = application.connect(friend);
     assertEquals(1, streams.length);
     Stream stream = streams[0];
     checkConnectedFriends(application, friend);
     checkWriteOnMultiThread(stream);
     checkDisconnect(application, stream);
   } finally {
     application.finish();
   }
 }