test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetFileTransferImpl.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
    {
        if(getContact1() == null && getContact2() == null)
            fixture.clearProvidersLists();
        if(getContact1() == null)
        {
            Object o = new Object();
            synchronized(o)
            {
                o.wait(2000);
            }
            try
            {
                opSetPresence1.setAuthorizationHandler(new AuthHandler());
                opSetPresence1.subscribe(fixture.userID2);
            }
            catch (OperationFailedException ex)
            {
            }
        }
        if(getContact2() == null)
        {
            try
            {
                opSetPresence2.setAuthorizationHandler(new AuthHandler());
                opSetPresence2.subscribe(fixture.userID1);
            }
            catch (OperationFailedException ex1)
            {
            }
            logger.info("will wait till the list prepare is completed");
            Object o = new Object();
            synchronized(o)
            {
                o.wait(4000);
            }
        }
    }
public void prepareContactList ( ) throws Exception { if ( getContact1 ( ) == null && getContact2 ( ) == null ) fixture . clearProvidersLists ( ) ; if ( getContact1 ( ) == null ) { Object o = new Object ( ) ; synchronized ( o ) { o . wait ( 2000 ) ; } try { opSetPresence1 . setAuthorizationHandler ( new AuthHandler ( ) ) ; opSetPresence1 . subscribe ( fixture . userID2 ) ; } catch ( OperationFailedException ex ) { } } if ( getContact2 ( ) == null ) { try { opSetPresence2 . setAuthorizationHandler ( new AuthHandler ( ) ) ; opSetPresence2 . subscribe ( fixture . userID1 ) ; } catch ( OperationFailedException ex1 ) { } logger . info ( "will wait till the list prepare is completed" ) ; Object o = new Object ( ) ; 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
// clear the provider the first time we run a filetransfer list // the contact already exist its OK // the contact already exist its OK