OSDN Git Service

added nested schema generator
[xerial/xerial-core.git] / src / test / java / org / xerial / lens / relation / query / lang / RelationExprTest.java
index 43c26f7..5d5925f 100644 (file)
@@ -39,9 +39,10 @@ public class RelationExprTest {
     @After\r
     public void tearDown() throws Exception {}\r
 \r
-    public void parse(String query) throws Exception {\r
+    public RelationExpr parse(String query) throws Exception {\r
         RelationExpr e = RelationExpr.parse(query);\r
         _logger.info(Lens.toJSON(e));\r
+        return e;\r
     }\r
 \r
     @Test\r
@@ -56,7 +57,8 @@ public class RelationExprTest {
 \r
     @Test\r
     public void q3() throws Exception {\r
-        parse("entry(dc.subject:sigmod09, link(rel:related, href), summary)");\r
+        RelationExpr e = parse("entry(dc.subject:sigmod09, link(rel:related, href), summary)");\r
+        _logger.debug(e.toSchema());\r
     }\r
 \r
 }\r