Fix ANY23-312 - fix unit test for literals
Signed-off-by:Jacek Grzebyta <[email protected]> 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 <[email protected]> Authored: Fri Oct 27 17:17:10 2017 +0100 Committer: Jacek Grzebyta <[email protected]> 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()); }); }
