summaryrefslogtreecommitdiffstats
path: root/src/org/uic/ticket/api/test/DateTimeUtilsTest.java
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-02-25 11:02:26 +0100
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-02-25 11:02:26 +0100
commit425bd35c736b7e1c0dbe5b3f9162e195b3be6018 (patch)
treebc4668aa125fb0a15518d464a1738c6b05e56d07 /src/org/uic/ticket/api/test/DateTimeUtilsTest.java
parentissuerOnLine changed from int to Integer as it is optional (diff)
downloadUIC-barcode-1.2.tar
UIC-barcode-1.2.tar.gz
UIC-barcode-1.2.tar.bz2
UIC-barcode-1.2.tar.lz
UIC-barcode-1.2.tar.xz
UIC-barcode-1.2.tar.zst
UIC-barcode-1.2.zip
Diffstat (limited to 'src/org/uic/ticket/api/test/DateTimeUtilsTest.java')
-rw-r--r--src/org/uic/ticket/api/test/DateTimeUtilsTest.java45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/org/uic/ticket/api/test/DateTimeUtilsTest.java b/src/org/uic/ticket/api/test/DateTimeUtilsTest.java
deleted file mode 100644
index 1b809dd..0000000
--- a/src/org/uic/ticket/api/test/DateTimeUtilsTest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.uic.ticket.api.test;
-
-import java.util.Calendar;
-import java.util.TimeZone;
-import org.junit.Test;
-import org.uic.ticket.api.asn.omv1.DateTimeUtils;
-
-
-public class DateTimeUtilsTest{
-
-
-
- @Test public void testDateDiff1() throws IllegalArgumentException, IllegalAccessException {
-
- Calendar issuing = Calendar.getInstance();
- issuing.setTimeZone(TimeZone.getTimeZone("UTC"));
- issuing.set(Calendar.YEAR,2017);
- issuing.set(Calendar.DAY_OF_MONTH, 31);
- issuing.set(Calendar.MONTH, 12);
- issuing.set(Calendar.HOUR_OF_DAY, 23);
- issuing.set(Calendar.MINUTE, 5);
-
- Calendar local = Calendar.getInstance();
- local.set(Calendar.YEAR,2018);
- local.set(Calendar.DAY_OF_MONTH, 1);
- local.set(Calendar.MONTH, 1);
- issuing.set(Calendar.HOUR_OF_DAY, 0);
- issuing.set(Calendar.MINUTE, 5);
-
- Long diff = DateTimeUtils.getDateDifference(issuing.getTime(), local.getTime());
-
-
- assert(diff.intValue() == 1);
- }
-
-
-
-
-
-
-
-
-
-
-}