use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionOneArgumentTest2.
@Test
public void crossFunctionOneArgumentTest2() throws Exception {
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", 1, "", "")).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "john");
}
use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionDateTimeArgumentTest1.
@Test
public void crossFunctionDateTimeArgumentTest1() throws Exception {
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", dateTimeValue.toString(), "My Address Book", "friend")).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "dateTime");
}
use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionBooleanTest.
@Test
public void crossFunctionBooleanTest() throws Exception {
Project project = (Project) bindings.get("project");
Cell c = project.rows.get(5).cells.get(1);
WrappedCell lookup = new WrappedCell(project, "recipient", c);
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", lookup, "My Address Book", "friend")).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "boolean");
}
use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionDateTimeTest.
@Test
public void crossFunctionDateTimeTest() throws Exception {
Project project = (Project) bindings.get("project");
Cell c = project.rows.get(2).cells.get(1);
WrappedCell lookup = new WrappedCell(project, "recipient", c);
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", lookup, "My Address Book", "friend")).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "dateTime");
}
use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionIntegerTest.
@Test
public void crossFunctionIntegerTest() throws Exception {
Project project = (Project) bindings.get("project");
Cell c = project.rows.get(3).cells.get(1);
WrappedCell lookup = new WrappedCell(project, "recipient", c);
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", lookup, "My Address Book", "friend")).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "integer");
}
Aggregations