fitlibraryGeneric.eg.rentEz.Client 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!
package fitlibraryGeneric.eg.rentEz;
import java.util.ArrayList;
import java.util.List;
public class Client {
private String name;
private List rentals = new ArrayList();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List getRentals() {
return rentals;
}
public void setRentals(List rentals) {
this.rentals = rentals;
}
public void addRentals(List rentalItems) {
for (@SuppressWarnings("unused") RentalItem item : rentalItems)
rentals.add(new Rental());
}
@Override
public String toString() {
return "Client["+name+"]";
}
}