use of infoeval.main.WikiData.Connector in project Info-Evaluation by TechnionYP5777.
the class ConnectorTest method connectionTest.
@Test
public void connectionTest() throws Exception {
when(ds.getConnection()).thenReturn(connection);
Connection connection = new Connector().getConnection();
assert connection != null;
connection.close();
}
use of infoeval.main.WikiData.Connector in project Info-Evaluation by TechnionYP5777.
the class SqlTablesFillerTest method basicInfoTableSizeTest.
@Ignore
@Test
@SuppressWarnings("rawtypes")
public void basicInfoTableSizeTest() throws Exception {
Row row = new Connector().runQuery("SELECT COUNT(*) FROM basic_info").get(0);
Entry<Object, Class> col = row.row.get(0);
assertEquals(ENTRIES_NUM - 1, (long) col.getValue().cast(col.getKey()));
}
Aggregations