Search in sources :

Example 21 with HasFieldsListImpl

use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.

the class CrossTests method crossFunctionIntegerArgumentTest2.

@Test
public void crossFunctionIntegerArgumentTest2() throws Exception {
    Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", "1600", "My Address Book", "friend")).get(0)).row);
    String address = row.getCell(1).value.toString();
    Assert.assertEquals(address, "integer");
}
Also used : HasFieldsListImpl(com.google.refine.expr.HasFieldsListImpl) WrappedRow(com.google.refine.expr.WrappedRow) Row(com.google.refine.model.Row) RefineTest(com.google.refine.RefineTest) Test(org.testng.annotations.Test) BeforeTest(org.testng.annotations.BeforeTest)

Example 22 with HasFieldsListImpl

use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.

the class CrossTests method crossFunctionDateTimeArgumentTest.

@Test
public void crossFunctionDateTimeArgumentTest() throws Exception {
    Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", dateTimeValue, "My Address Book", "friend")).get(0)).row);
    String address = row.getCell(1).value.toString();
    Assert.assertEquals(address, "dateTime");
}
Also used : HasFieldsListImpl(com.google.refine.expr.HasFieldsListImpl) WrappedRow(com.google.refine.expr.WrappedRow) Row(com.google.refine.model.Row) RefineTest(com.google.refine.RefineTest) Test(org.testng.annotations.Test) BeforeTest(org.testng.annotations.BeforeTest)

Example 23 with HasFieldsListImpl

use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.

the class CrossTests method crossFunctionOneToOneTest.

@Test
public void crossFunctionOneToOneTest() throws Exception {
    Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", "mary", "My Address Book", "friend")).get(0)).row);
    String address = row.getCell(1).value.toString();
    Assert.assertEquals(address, "50 Broadway Ave.");
}
Also used : HasFieldsListImpl(com.google.refine.expr.HasFieldsListImpl) WrappedRow(com.google.refine.expr.WrappedRow) Row(com.google.refine.model.Row) RefineTest(com.google.refine.RefineTest) Test(org.testng.annotations.Test) BeforeTest(org.testng.annotations.BeforeTest)

Example 24 with HasFieldsListImpl

use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.

the class CrossTests method crossFunctionIntegerArgumentTest.

@Test
public void crossFunctionIntegerArgumentTest() throws Exception {
    Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", 1600, "My Address Book", "friend")).get(0)).row);
    String address = row.getCell(1).value.toString();
    Assert.assertEquals(address, "integer");
}
Also used : HasFieldsListImpl(com.google.refine.expr.HasFieldsListImpl) WrappedRow(com.google.refine.expr.WrappedRow) Row(com.google.refine.model.Row) RefineTest(com.google.refine.RefineTest) Test(org.testng.annotations.Test) BeforeTest(org.testng.annotations.BeforeTest)

Example 25 with HasFieldsListImpl

use of com.google.refine.expr.HasFieldsListImpl in project OpenRefine by OpenRefine.

the class CrossTests method crossFunctionIntegerArgumentTest1.

@Test
public void crossFunctionIntegerArgumentTest1() throws Exception {
    Row row = (((WrappedRow) ((HasFieldsListImpl) invoke("cross", 1600L, "My Address Book", "friend")).get(0)).row);
    String address = row.getCell(1).value.toString();
    Assert.assertEquals(address, "integer");
}
Also used : HasFieldsListImpl(com.google.refine.expr.HasFieldsListImpl) WrappedRow(com.google.refine.expr.WrappedRow) Row(com.google.refine.model.Row) RefineTest(com.google.refine.RefineTest) Test(org.testng.annotations.Test) BeforeTest(org.testng.annotations.BeforeTest)

Aggregations

RefineTest (com.google.refine.RefineTest)25 HasFieldsListImpl (com.google.refine.expr.HasFieldsListImpl)25 WrappedRow (com.google.refine.expr.WrappedRow)25 Row (com.google.refine.model.Row)25 BeforeTest (org.testng.annotations.BeforeTest)25 Test (org.testng.annotations.Test)25 WrappedCell (com.google.refine.expr.WrappedCell)5 Cell (com.google.refine.model.Cell)5 Project (com.google.refine.model.Project)5