@@ -0,0 +1,1998 @@
+/*%0A * Copyright 2016 EuregJUG.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage eu.euregjug.site.support.thymeleaf.expressions;%0A%0Aimport java.time.YearMonth;%0Aimport java.time.ZoneId;%0Aimport java.time.ZonedDateTime;%0Aimport java.time.format.FormatStyle;%0Aimport java.util.Locale;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * @author Michael J. Simons, 2015-01-09%0A */%0Apublic class TemporalsTest %7B%0A%0A    @Test%0A    public void formatDateShouldWork() %7B%0A        final Temporals temporals = new Temporals(Locale.US);%0A        Assert.assertEquals(%226/30/09%22, temporals.formatDate(ZonedDateTime.now().withYear(2009).withMonth(6).withDayOfMonth(30), FormatStyle.SHORT));%0A        Assert.assertEquals(%226/30/09 7:03:47 AM%22, temporals.formatDateTime(%0A                ZonedDateTime.now()%0A                .withYear(2009).withMonth(6).withDayOfMonth(30)%0A                .withHour(7).withMinute(3).withSecond(47),%0A                FormatStyle.SHORT,%0A                FormatStyle.MEDIUM%0A        ));%0A        Assert.assertEquals(%2210/26/14 1:30:00 AM%22, temporals.formatDateTime(%0A                ZonedDateTime.of(2014, 10, 26, 1, 30, 0, 0, ZoneId.of(%22UTC%22)),%0A                FormatStyle.SHORT,%0A                FormatStyle.MEDIUM%0A        ));%0A        Assert.assertEquals(%22March 1979%22, temporals.format(YearMonth.of(1979, 3), %22MMMM yyyy%22));%0A        Assert.assertEquals(%222014.10.26 01:30%22, temporals.format(ZonedDateTime.of(2014, 10, 26, 1, 30, 0, 0, ZoneId.of(%22UTC%22)), %22yyyy.MM.dd HH:mm%22));%0A    %7D%0A%7D%0A

Add existing tests from Daily Fratze