All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fitlibrary.eg.chat.ChatStart Maven / Gradle / Ivy

Go to download

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");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy