@@ -0,0 +1,1539 @@
+/*%0A * DefaultDateTimeServiceTest.java%0A *%0A * Copyright (C) 2018 %5B A Legge Up %5D%0A *%0A * This software may be modified and distributed under the terms%0A * of the MIT license.  See the LICENSE file for details.%0A */%0A%0Apackage com.aleggeup.confagrid.service.impl;%0A%0Aimport java.util.Date;%0A%0Aimport org.joda.time.DateTime;%0Aimport org.junit.After;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.junit.MockitoJUnitRunner;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class DefaultDateTimeServiceTest %7B%0A%0A    private DefaultDateTimeService defaultDateTimeService;%0A%0A    @Before%0A    public void setUp() %7B%0A        defaultDateTimeService = new DefaultDateTimeService();%0A    %7D%0A%0A    @After%0A    public void tearDown() %7B%0A    %7D%0A%0A    @Test%0A    public void testNow() %7B%0A        final DateTime dateTime = defaultDateTimeService.now();%0A        Assert.assertNotNull(dateTime);%0A    %7D%0A%0A    @Test%0A    public void testNowAsDate() %7B%0A        final Date date = defaultDateTimeService.nowAsDate();%0A        Assert.assertNotNull(date);%0A    %7D%0A%0A    @Test%0A    public void testPlusDay() %7B%0A        final DateTime now = DateTime.now();%0A        final DateTime expiry = now.plusDays(1);%0A%0A        Assert.assertEquals(expiry, defaultDateTimeService.plusDays(now, 1));%0A    %7D%0A%0A    @Test%0A    public void testPlusDayAsDate() %7B%0A        final DateTime now = DateTime.now();%0A        final Date expiry = now.plusDays(1).toDate();%0A%0A        Assert.assertEquals(expiry, defaultDateTimeService.plusDaysAsDate(now, 1));%0A    %7D%0A%7D%0A

Add simple tests for DateTimeService