
FitNesseRoot.Fitnesse.UserGuide.WritingAcceptanceTests.SliM.QueryTable.content.txt Maven / Gradle / Ivy
The rows in a query table represent the expected results of a query.
You can specify them precisely if you like as in the following:
|Query:employees hired before|10-Dec-1980 |
|company number |employee number|first name|last name|hire date |
|4808147 |9942 |Bill |Mitchell |19-Dec-1966|
|4808147 |1429 |Bob |Martin |10-Oct-1975|
Or you can leave cells blank and allow them to be filled in:
|Query:employees hired before|10-Dec-1980 |
|employee number |first name|last name|hire date|
|1429 | | | |
|8832 | | | |
The code for the fixture is: {{{
package fitnesse.slim.test;
import static fitnesse.util.ListUtility.list;
import java.util.Date;
import java.util.List;
public class EmployeesHiredBefore {
private Date date;
public EmployeesHiredBefore(Date date) {
this.date = date;
}
public void table(List> table) {
//optional function
}
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy