@@ -0,0 +1,784 @@
+package de.stephanlindauer.criticalmaps.utils;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.Date;%0A%0Aimport static com.google.common.truth.Truth.assertThat;%0A%0Apublic class DateUtilsTest %7B%0A    @Test%0A    public void isNotLongerAgoThen_longerTimeReturnsFalse() throws Exception %7B%0A        long sixMinutesInMs = 1000 * 60 * 6;%0A        Date sixMinutesAgo = new Date(new Date().getTime() - sixMinutesInMs);%0A        assertThat(DateUtils.isNotLongerAgoThen(sixMinutesAgo, 5, 55)).isFalse();%0A    %7D%0A%0A    @Test%0A    public void isNotLongerAgoThen_shorterTimeReturnsTrue() throws Exception %7B%0A        long sixMinutesInMs = 1000 * 60 * 6;%0A        Date sixMinutesAgo = new Date(new Date().getTime() - sixMinutesInMs);%0A        assertThat(DateUtils.isNotLongerAgoThen(sixMinutesAgo, 6, 55)).isTrue();%0A    %7D%0A%7D%0A

add unittests