@@ -0,0 +1,1076 @@
+package pollseed.util;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0Aimport java.time.ZonedDateTime;%0Aimport java.util.Date;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.joda.time.DateTime;%0Aimport org.junit.Test;%0A%0Aimport util.DateAddOn;%0Aimport util.DateAddOn.DateFormat;%0A%0Apublic class TestDateAddOn extends TestCase %7B%0A%0A    @Test%0A    public void test() %7B%0A        final Date now = DateAddOn.now();%0A        final DateTime nowDateTime = DateAddOn.nowDateTime();%0A        final ZonedDateTime nowZonedDateTime = DateAddOn.nowZonedDateTime();%0A%0A        assertThat(DateAddOn.format(now, DateFormat.HYPHEN_HMS),%0A                is(DateAddOn.format(nowDateTime, DateFormat.HYPHEN_HMS)));%0A        assertThat(DateAddOn.format(now, DateFormat.HYPHEN_HMS),%0A                is(DateAddOn.format(DateAddOn.toDate(nowZonedDateTime), DateFormat.HYPHEN_HMS)));%0A        assertThat(DateAddOn.format(nowDateTime, DateFormat.HYPHEN_HMS),%0A                is(DateAddOn.format(DateAddOn.toDateTime(nowZonedDateTime), DateFormat.HYPHEN_HMS)));%0A    %7D%0A%0A%7D%0A

Create TestDateAddOn.java