stefan-egli commented on code in PR #560:
URL: https://github.com/apache/jackrabbit-oak/pull/560#discussion_r874724331


##########
oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoDocumentStoreTest.java:
##########
@@ -241,6 +244,19 @@ public void queryWithLimit() throws Exception {
         store.dispose();
     }
 
+    @Test(expected = DocumentStoreException.class)
+    public void queryWithNodeNameTooLong() {
+        DocumentStore docStore = openDocumentStore();
+        DocumentNodeStore store = 
builderProvider.newBuilder().setDocumentStore(docStore).setAsyncDelay(0).getNodeStore();
+        Revision rev = Revision.newRevision(0);
+        List<UpdateOp> inserts = Lists.newArrayList();
+        for (int i = 0; i < 2; i++) {
+            DocumentNodeState n = new DocumentNodeState(store, 
Path.fromString(DocumentMK.LONG_PATH + i),
+                    new RevisionVector(rev));
+            inserts.add(n.asOperation(rev));
+        }

Review Comment:
   (but outside of the existance of a loop that `i` maybe doesn't make much 
sense neither so could also be removed i guess)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to