LocalDate converted = converter.parse(string); if(!converted.equals(localDate)) { System.out.println("[" + language +"] " + string + " => " + converted + " [expected: " + localDate + "]");
@Test public void minDate() { LocalDate afterMinDate = new LocalDate(2017,01,01); assertTrue("Should be _after_ minimum date", afterMinDate.after(LocalDate.MIN_DATE)); LocalDate onMinDate = new LocalDate(1000,01,01); assertTrue("Should be _on_ minimum date", onMinDate.equals(LocalDate.MIN_DATE)); LocalDate beforeMinDate = new LocalDate(99,01,01); assertTrue("Should be _before_ minimum date", beforeMinDate.before(LocalDate.MIN_DATE)); }