use of com.github.lantoine.lamsadetools.conferences.Conference in project LAMSADE-tools by LAntoine.
the class TestConferenceDataBases method insertInDatabase.
@Test
public void insertInDatabase() throws SQLException {
String dateFormat = "dd/MM/yyyy";
DateTimeFormatter dtf = DateTimeFormatter.ofPattern(dateFormat);
dtf.withLocale(Locale.FRANCE);
Conference conf = new Conference("Antoine s conf", "url", LocalDate.parse("10/03/2017", dtf), LocalDate.parse("11/03/2017", dtf), 0, "city", "address");
ConferenceDatabase.insertInDatabase(conf);
}
Aggregations