use of jetbrains.communicator.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class DeleteCommandTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myUserListComponentMock = mock(UserListComponent.class);
myIDEFacade = mock(IDEFacade.class);
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
myCommand = new DeleteCommand(myUserModel, (UserListComponent) myUserListComponentMock.proxy(), (IDEFacade) myIDEFacade.proxy()) {
@Override
protected boolean isFocused() {
return true;
}
};
}
use of jetbrains.communicator.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class TestFactory method createUserListWithUsers.
public static UserModel createUserListWithUsers(BaseTestCase test) throws UnknownHostException {
UserModelImpl result = new UserModelImpl(test.getBroadcaster());
test.disposeOnTearDown(result);
result.addUser(new MockUser("aaa", "group1"));
result.addUser(new MockUser("ccc", "group1"));
result.addUser(new MockUser("zzz", "group2", true));
result.addUser(new MockUser("aaaa", "group2"));
result.addUser(new MockUser("bbb", "group2"));
Pico.getInstance().registerComponentInstance(UserModel.class, result);
return result;
}
use of jetbrains.communicator.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class EventsProcessorTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
myMock = mock(IDEtalkMessagesWindow.class);
LocalMessageDispatcherImpl localMessageDispatcher = new LocalMessageDispatcherImpl(getBroadcaster(), new MockIDEFacade(getClass()), myUserModel);
disposeOnTearDown(localMessageDispatcher);
EventsProcessor processor = new EventsProcessor((IDEtalkMessagesWindow) myMock.proxy(), myUserModel, localMessageDispatcher, null);
disposeOnTearDown(processor);
}
use of jetbrains.communicator.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class FileAccessProviderTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myUserModel = new UserModelImpl(getBroadcaster());
myMock = new Mock(IDEFacade.class);
disposeOnTearDown(myUserModel);
myIdeFacade = (IDEFacade) myMock.proxy();
myUser = myUserModel.createUser("User", MockTransport.NAME);
myProvider = new MyProvider(myIdeFacade, myUserModel);
}
Aggregations