Search in sources :

Example 1 with MockUserListComponent

use of jetbrains.communicator.mock.MockUserListComponent in project intellij-plugins by JetBrains.

the class SendMessageCommandTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myMockUserListComponent = new MockUserListComponent();
    myFacadeMock = mock(IDEFacade.class);
    myUserModel = new UserModelImpl(getBroadcaster());
    disposeOnTearDown(myUserModel);
    myCommand = new SendMessageCommand(myUserModel, myMockUserListComponent, (IDEFacade) myFacadeMock.proxy());
}
Also used : UserModelImpl(jetbrains.communicator.core.impl.users.UserModelImpl) MockUserListComponent(jetbrains.communicator.mock.MockUserListComponent) MockIDEFacade(jetbrains.communicator.mock.MockIDEFacade) IDEFacade(jetbrains.communicator.ide.IDEFacade)

Example 2 with MockUserListComponent

use of jetbrains.communicator.mock.MockUserListComponent in project intellij-plugins by JetBrains.

the class ViewFilesCommandTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myMockUserListComponent = new MockUserListComponent();
    myFacadeMock = mock(IDEFacade.class);
    myCommand = new ViewFilesCommand(myMockUserListComponent, (IDEFacade) myFacadeMock.proxy());
}
Also used : MockUserListComponent(jetbrains.communicator.mock.MockUserListComponent) IDEFacade(jetbrains.communicator.ide.IDEFacade)

Aggregations

IDEFacade (jetbrains.communicator.ide.IDEFacade)2 MockUserListComponent (jetbrains.communicator.mock.MockUserListComponent)2 UserModelImpl (jetbrains.communicator.core.impl.users.UserModelImpl)1 MockIDEFacade (jetbrains.communicator.mock.MockIDEFacade)1