test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetMultiUserChat2.java
/**
     * Create the list to be sure that contacts exchanging messages
     * exists in each other lists
     * @throws Exception
     */
Create the list to be sure that contacts exchanging messages
exists in each other lists
@throws Exception
Create the list to be sure that contacts exchanging messages exists in each other lists @throws Exception
public void prepareContactList()
        throws Exception
    {
        fixture.clearProvidersLists();
        final Object o = new Object();
        synchronized (o)
        {
            o.wait(2000);
        }
        try
        {
            opSetPresence1.subscribe(fixture.userID2);
        }
        catch (OperationFailedException ex)
        {
        }
        try
        {
            opSetPresence1.subscribe(fixture.userID3);
        }
        catch (OperationFailedException ex)
        {
        }
        try
        {
            opSetPresence2.subscribe(fixture.userID1);
        }
        catch (OperationFailedException ex1)
        {
        }
        try
        {
            opSetPresence2.subscribe(fixture.userID3);
        }
        catch (OperationFailedException ex1)
        {
        }
        try
        {
            opSetPresence3.subscribe(fixture.userID1);
        }
        catch (OperationFailedException ex1)
        {
        }
        try
        {
            opSetPresence3.subscribe(fixture.userID2);
        }
        catch (OperationFailedException ex1)
        {
        }
        logger.info("will wait till the list prepare is completed");
        synchronized (o)
        {
            o.wait(4000);
        }
    }
public void prepareContactList ( ) throws Exception { fixture . clearProvidersLists ( ) ; final Object o = new Object ( ) ; synchronized ( o ) { o . wait ( 2000 ) ; } try { opSetPresence1 . subscribe ( fixture . userID2 ) ; } catch ( OperationFailedException ex ) { } try { opSetPresence1 . subscribe ( fixture . userID3 ) ; } catch ( OperationFailedException ex ) { } try { opSetPresence2 . subscribe ( fixture . userID1 ) ; } catch ( OperationFailedException ex1 ) { } try { opSetPresence2 . subscribe ( fixture . userID3 ) ; } catch ( OperationFailedException ex1 ) { } try { opSetPresence3 . subscribe ( fixture . userID1 ) ; } catch ( OperationFailedException ex1 ) { } try { opSetPresence3 . subscribe ( fixture . userID2 ) ; } catch ( OperationFailedException ex1 ) { } logger . info ( "will wait till the list prepare is completed" ) ; synchronized ( o ) { o . wait ( 4000 ) ; } }
Create the list to be sure that contacts exchanging messages
 exists in each other lists
 @throws Exception
Create the list to be sure that contacts exchanging messages exists in each other lists @throws Exception
// the contact already exist its OK // the contact already exist its OK // the contact already exist its OK // the contact already exist its OK // the contact already exist its OK // the contact already exist its OK