Search in sources :

Example 11 with TableEntry

use of infoeval.main.mysql.TableEntry in project Info-Evaluation by TechnionYP5777.

the class TableEntryTest method test3.

@Test
@SuppressWarnings("deprecation")
public void test3() {
    TableEntry te = new TableEntry();
    te.setUrl("url");
    te.setName("name");
    te.setDeathPlace("deathPlace");
    te.setBirthPlace("birthPlace");
    te.setBirthDate(new Date(2000, 10, 21));
    te.setDeathDate(new Date(2015, 10, 21));
    assertEquals(te.getBirthDate(), new Date(2000, 10, 21));
    assertEquals(te.getDeathDate(), new Date(2015, 10, 21));
    assertEquals("birthPlace", te.getBirthPlace());
    assertEquals("deathPlace", te.getDeathPlace());
    assertEquals("url", te.getUrl());
    assertEquals("name", te.getName());
}
Also used : TableEntry(infoeval.main.mysql.TableEntry) Date(java.sql.Date) Test(org.junit.Test)

Example 12 with TableEntry

use of infoeval.main.mysql.TableEntry in project Info-Evaluation by TechnionYP5777.

the class TableEntryTest method test2.

@Test
@SuppressWarnings("deprecation")
public void test2() {
    TableEntry te = new TableEntry("url", "name", "birthPlace", "deathPlace", new Date(2000, 10, 21), new Date(2015, 10, 21), "", "", "", "", "");
    assertEquals(te.getBirthDate(), new Date(2000, 10, 21));
    assertEquals(te.getDeathDate(), new Date(2015, 10, 21));
    assertEquals("birthPlace", te.getBirthPlace());
    assertEquals("deathPlace", te.getDeathPlace());
    assertEquals("url", te.getUrl());
    assertEquals("name", te.getName());
}
Also used : TableEntry(infoeval.main.mysql.TableEntry) Date(java.sql.Date) Test(org.junit.Test)

Aggregations

TableEntry (infoeval.main.mysql.TableEntry)12 Test (org.junit.Test)9 Date (java.sql.Date)8 Ignore (org.junit.Ignore)5 SimpleDateFormat (java.text.SimpleDateFormat)3 SqlRunner (infoeval.main.mysql.SqlRunner)2 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)2 Row (infoeval.main.mysql.Row)1 QuerySolution (org.apache.jena.query.QuerySolution)1 RDFNode (org.apache.jena.rdf.model.RDFNode)1