fitlibrary.eg.chat.ChatStart Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitlibrary Show documentation
Show all versions of fitlibrary Show documentation
FitLibrary provides general-purpose fixtures (and runners) for storytests with Fit and FitNesse.
The newest version!
/*
* Copyright (c) 2009 Rick Mugridge, www.RimuResearch.com
* Released under the terms of the GNU General Public License version 2 or later.
*/
package fitlibrary.eg.chat;
import java.util.List;
import fitlibrary.DoFixture;
public class ChatStart extends DoFixture {
private static ChatSystem chat;
public ChatStart() {
super(chat = new ChatSystem());
}
public List usersInRoom(String roomName) {
return chat.findRoom(roomName).getUsers();
}
public boolean roomIsEmpty(String roomName) {
return chat.findRoom(roomName).getUsers().isEmpty();
}
public List usersInLotr() {
return usersInRoom("lotr");
}
}