use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionLongArgumentTest1.
@Test
public void crossFunctionLongArgumentTest1() throws Exception {
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", "123456789123456789", "My Address Book", "friend")).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "long");
}
use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionOneArgumentTest.
@Test
public // lookup the row with index 0 in the current project
void crossFunctionOneArgumentTest() throws Exception {
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", 0)).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "mary");
}
use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionTwoArgumentTest.
@Test
public void crossFunctionTwoArgumentTest() throws Exception {
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", "lamp", "", "gift")).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "mary");
}
use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionTwoArgumentTest1.
@Test
public void crossFunctionTwoArgumentTest1() throws Exception {
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", 0, "My Address Book")).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "120 Main St.");
}
use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.
the class CrossTests method crossFunctionTwoArgumentTest2.
@Test
public void crossFunctionTwoArgumentTest2() throws Exception {
Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", 0, "My Address Book", "")).get(0)).row);
String address = row.getCell(1).value.toString();
Assert.assertEquals(address, "120 Main St.");
}
Aggregations