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/86846dc6
Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/86846dc6
Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/86846dc6

Branch: refs/heads/ANY23-141
Commit: 86846dc699dd6ae58257fa74df8a95dae13929d8
Parents: 0b69595
Author: Peter Ansell <[email protected]>
Authored: Wed Oct 24 14:47:19 2012 +1000
Committer: Peter Ansell <[email protected]>
Committed: Fri Apr 19 13:35:47 2013 +1000

----------------------------------------------------------------------
 .../java/org/apache/any23/cli/CrawlerTest.java     |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/86846dc6/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 6a776e7..fa4cbc0 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
@@ -87,6 +87,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());

Reply via email to