From f57d91ac1627ef66aaddc352509d32d995ea40e1 Mon Sep 17 00:00:00 2001
From: str4d <str4d@mail.i2p>
Date: Mon, 5 Nov 2012 21:00:20 +0000
Subject: [PATCH] Added missing DateAndFlagsTest - no errors in core junit
 tests now

---
 .../junit/net/i2p/data/DateAndFlagsTest.java  | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 core/java/test/junit/net/i2p/data/DateAndFlagsTest.java

diff --git a/core/java/test/junit/net/i2p/data/DateAndFlagsTest.java b/core/java/test/junit/net/i2p/data/DateAndFlagsTest.java
new file mode 100644
index 0000000000..3399c6e16c
--- /dev/null
+++ b/core/java/test/junit/net/i2p/data/DateAndFlagsTest.java
@@ -0,0 +1,31 @@
+package net.i2p.data;
+/*
+ * free (adj.): unencumbered; not under the control of others
+ * Written by str4d in 2012 and released into the public domain 
+ * with no warranty of any kind, either expressed or implied.  
+ * It probably won't make your computer catch on fire, or eat 
+ * your children, but it might.  Use at your own risk.
+ *
+ */
+
+/**
+ * Test harness for loading / storing DateAndFlags objects
+ *
+ * @author str4d
+ */
+public class DateAndFlagsTest extends StructureTest {
+
+	@Override
+	public DataStructure createDataStructure() throws DataFormatException {
+		DateAndFlags daf = new DateAndFlags();
+		daf.setDate(0);
+		daf.setFlags(0);
+		return daf;
+	}
+
+	@Override
+	public DataStructure createStructureToRead() {
+		return new DateAndFlags();
+	}
+
+}
-- 
GitLab