fix test that attempted to parse an nquads file with no newlines in it, against the specification
Project: http://git-wip-us.apache.org/repos/asf/any23/repo Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/3a155fea Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/3a155fea Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/3a155fea Branch: refs/heads/master Commit: 3a155feaf7f23859c11ee9959ecb2de3f09a3f5e Parents: 9643063 Author: Peter Ansell <[email protected]> Authored: Wed Oct 24 14:47:19 2012 +1000 Committer: Peter Ansell <[email protected]> Committed: Wed Jun 26 10:08:07 2013 +1000 ---------------------------------------------------------------------- .../src/test/java/org/apache/any23/cli/CrawlerTest.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/any23/blob/3a155fea/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java ---------------------------------------------------------------------- diff --git a/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java b/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java index bf66295..2439336 100644 --- a/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java +++ b/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java @@ -89,6 +89,7 @@ public class CrawlerTest extends Any23OnlineTestBase { final StringBuilder allLinesExceptLast = new StringBuilder(); for (int i = 0; i < lines.length - 1; i++) { allLinesExceptLast.append(lines[i]); + allLinesExceptLast.append("\n"); } final Statement[] statements = RDFUtils.parseRDF(RDFFormat.NQUADS, allLinesExceptLast.toString());
