You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@any23.apache.org by jg...@apache.org on 2017/12/07 12:28:12 UTC

[09/17] any23 git commit: Fix ANY23-312

Fix ANY23-312

- fix unit test for literals

Signed-off-by:Jacek Grzebyta <gr...@gmail.com>

Project: http://git-wip-us.apache.org/repos/asf/any23/repo
Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/e2ff945d
Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/e2ff945d
Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/e2ff945d

Branch: refs/heads/master
Commit: e2ff945d1a58b35f461b0650e17b2f413867b0b2
Parents: 246af9b
Author: Jacek Grzebyta <gr...@gmail.com>
Authored: Fri Oct 27 17:17:10 2017 +0100
Committer: Jacek Grzebyta <gr...@gmail.com>
Committed: Fri Oct 27 17:17:10 2017 +0100

----------------------------------------------------------------------
 .../org/apache/any23/extractor/yaml/ElementsProcessorTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/e2ff945d/core/src/test/java/org/apache/any23/extractor/yaml/ElementsProcessorTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/any23/extractor/yaml/ElementsProcessorTest.java b/core/src/test/java/org/apache/any23/extractor/yaml/ElementsProcessorTest.java
index 26899bb..6332776 100644
--- a/core/src/test/java/org/apache/any23/extractor/yaml/ElementsProcessorTest.java
+++ b/core/src/test/java/org/apache/any23/extractor/yaml/ElementsProcessorTest.java
@@ -93,7 +93,7 @@ public class ElementsProcessorTest {
         simpleList.forEach((i) -> {
             Map.Entry<Value, Model> out = ep.asModel(ep.vf.createIRI("urn:test/"), i, null);
             Assert.assertTrue(out.getKey() instanceof Literal);
-            Assert.assertNull(out.getValue());
+            Assert.assertTrue(out.getValue().isEmpty());
         });
     }