VPRDateTimeFormat { public static DateTimeFormatter date() { if (d == null) { d = new DateTimeFormatterBuilder() .append(year()) .append(monthOfYear()) .append(dayOfMonth()) .toFormatter(); } return d; } protected  VPRDateTimeFormat(); static DateTimeFormatter date(); static PointInTimeFormatter pointInTimeParser(); static PointInTime parse(String text); static PointInTime toPointInTime(String text);  }
@Test public void testFormatYear() { org.junit.Assert.assertEquals("19960000", VPRDateTimeFormat.date().print(new PointInTime(1996))); }
@Test public void testFormatMonth() { org.junit.Assert.assertEquals("19960300", VPRDateTimeFormat.date().print(new PointInTime(1996, 3))); }
@Test public void testFormatDate() { org.junit.Assert.assertEquals("19960311", VPRDateTimeFormat.date().print(new PointInTime(1996, 3, 11))); }
@Test public void testFormatDateTime() { org.junit.Assert.assertEquals("19960311", VPRDateTimeFormat.date().print(new PointInTime(1996, 3, 11, 10, 23, 35))); }
@Test public void testFormatJavaUtilDate() { GregorianCalendar c = new GregorianCalendar(1996, Calendar.MARCH, 11, 10, 23, 35); org.junit.Assert.assertEquals("19960311", VPRDateTimeFormat.date().print(LocalDateTime.fromCalendarFields(c))); }