package fitnesse.slim.test;

import util.ListUtility;

import static util.ListUtility.list;

import java.util.Date;
import java.util.List;

/**
 * Used by FitNesse.UserGuide.SliM.QueryTable.
 */
public class EmployeesHiredBefore {

  public EmployeesHiredBefore(Date date) {
  }

  public void table(List<List<String>> table) {
    //optional function
  }

  public Object query() {
      return "This is a test";
  }

  public List<Object> query2() {

    return
            ListUtility.<Object>list(
                    list(
                            list("employee number", "1429"),
                            list("first name", "Bob"),
                            list("last name", "Martin"),
                            list("hire date", "10-Oct-1974")
                    ),
                    list(
                            list("employee number", "8832"),
                            list("first name", "James"),
                            list("last name", "Grenning"),
                            list("hire date", "15-Dec-1979")
                    )
            );
  }
}

@@ -354,70 +354,8 @@
  %7D%0A%0A
-  public Object query() %7B%0A      return %22This is a test%22;%0A  %7D%0A%0A
   pu
@@ -377,17 +377,16 @@
 t%3E query
-2
 () %7B%0A%0A  

Fix query table example