until/since values
diff --git a/src/test/java/MetaQuerySerializationTest.java b/src/test/java/MetaQuerySerializationTest.java
index c44d036..99fb774 100644
--- a/src/test/java/MetaQuerySerializationTest.java
+++ b/src/test/java/MetaQuerySerializationTest.java
@@ -54,9 +54,28 @@
public void testDates() throws IOException {
Map<String, String> queries = new LinkedHashMap<>();
queries.put("<pubDate", String.valueOf(new DateTime().getMillis()));
- queries.put(">pubDate", String.valueOf(new DateTime().getMillis()+2));
+ queries.put(">pubDate", String.valueOf(new DateTime().getMillis() + 2));
queries.put("author", "Goethe");
String f = querySerializer.stringify(queries, MetaQuerySerializer.TYPE.FILTER);
- System.out.println("value : "+ f);
+// System.out.println("value : "+ f);
}
+
+ @Test
+ public void testUntil() throws IOException {
+ Map<String, String> queries = new LinkedHashMap<>();
+ queries.put(">pubDate", String.valueOf(new DateTime().getMillis()));
+ queries.put("author", "Hesse");
+ String f = querySerializer.stringify(queries, MetaQuerySerializer.TYPE.FILTER);
+ System.out.println("value until : " + f);
+ }
+
+ @Test
+ public void testSince() throws IOException {
+ Map<String, String> queries = new LinkedHashMap<>();
+ queries.put("<pubDate", String.valueOf(new DateTime().getMillis()));
+ queries.put("author", "Kafka");
+ String f = querySerializer.stringify(queries, MetaQuerySerializer.TYPE.FILTER);
+ System.out.println("value since : " + f);
+ }
+
}