use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class JabberTransportTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myFacade = new MockJabberFacade();
myUIMock = mock(JabberUI.class);
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
Mock dispatcherMock = mock(AsyncMessageDispatcher.class);
myIDEFacade = new MockIDEFacade();
dispatcherMock.stubs().method("getIdeFacade").will(returnValue(myIDEFacade));
myTransport = new JabberTransport((JabberUI) myUIMock.proxy(), myFacade, myUserModel, (AsyncMessageDispatcher) dispatcherMock.proxy(), null);
disposeOnTearDown(myTransport);
myProjectContainer = Pico.getInstance().makeChildContainer();
}
use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class JabberFacade_ConnectionTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myIDEFacade = new MockIDEFacade(getClass());
myFacade = new JabberFacadeImpl(myIDEFacade);
myUser = USER + System.currentTimeMillis();
}
use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class JabberUserFinderTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myFacade = new MockIDEFacade(getClass());
myFacade.setReturnedProjectId("33333");
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
myUserFinder = new JabberUserFinderImpl(myFacade, myUserModel);
}
use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class RegistrationFormTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myFacade = new MockJabberFacade();
myTextAcceptor = new TextAcceptor() {
@Override
public void setText(String text) {
myErrorText = text;
}
};
myIdeFacade = new MockIDEFacade();
myForm = new RegistrationForm(myFacade, myIdeFacade, myTextAcceptor);
}
use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class JabberFacadeTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myIDEFacade = new MockIDEFacade(getClass());
myFacade = new JabberFacadeImpl(myIDEFacade);
myFacade.getMyAccount().setRememberPassword(true);
}
Aggregations