use of infoeval.main.WikiData.Extractor in project Info-Evaluation by TechnionYP5777.
the class ExtractorTest method wikiIdTest.
@Ignore
@Test
public void wikiIdTest() {
Extractor extr = new Extractor();
extr.executeQuery(QueryTypes.WIKI_ID);
assertEquals(extr.getResults().size(), ENTRIES_NUM);
}
use of infoeval.main.WikiData.Extractor in project Info-Evaluation by TechnionYP5777.
the class ConnectorTest method wikiIdTableSizeTest.
@Ignore
@Test
public void wikiIdTableSizeTest() throws Exception {
Connector conn = new Connector();
assert conn.getConnection() != null;
ArrayList<Row> rows = conn.runQuery("SELECT COUNT(*) FROM WikiID");
Row row = rows.get(0);
Entry<Object, Class> col = row.row.get(0);
Object size = col.getValue().cast(col.getKey());
assertEquals(ENTRIES_NUM, size);
Extractor ext = new Extractor();
ext.executeQuery(QueryTypes.WIKI_ID);
assertEquals(ext.getResults().size(), size);
conn.close();
}
Aggregations