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

fitbook.UsersFixture2 Maven / Gradle / Ivy

Go to download

FitLibrary provides general-purpose fixtures (and runners) for storytests with Fit and FitNesse.

The newest version!
package fitbook;

import java.util.List;

import fitbook.chat.User;

/*
 * @author Rick Mugridge 11/10/2004
 * Copyright (c) 2004 Rick Mugridge, University of Auckland, NZ
 * Released under the terms of the GNU General Public License version 2 or later.
 */

/**
 * 
 */
@SuppressWarnings("unchecked")
public class UsersFixture2 extends fit.RowFixture { //COPY:ALL
	private Object[] collection; //COPY:ALL
	 //COPY:ALL
	public UsersFixture2(List users) { //COPY:ALL
		collection = users.toArray(); //COPY:ALL
	} //COPY:ALL
	@Override
	public Object[] query() throws Exception { //COPY:ALL
		return collection; //COPY:ALL
	} //COPY:ALL
	@Override
	public Class getTargetClass() { //COPY:ALL
		return User.class; //COPY:ALL
	} //COPY:ALL
} //COPY:ALL




© 2015 - 2024 Weber Informatics LLC | Privacy Policy