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));
te.setOccupation("Politician");
assertEquals(te.getBirthDate(), new Date(2000, 10, 21));
assertEquals(te.getDeathDate(), new Date(2015, 10, 21));
assertEquals("Politician", te.getOccupation());
assertEquals("birthPlace", te.getBirthPlace());
assertEquals("deathPlace", te.getDeathPlace());
assertEquals("url", te.getUrl());
assertEquals("name", te.getName());
}
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());
}
Aggregations