You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by th...@apache.org on 2022/06/16 13:34:18 UTC

[jackrabbit-oak] 22/32: OAK-9757 : removed un-necessary junit

This is an automated email from the ASF dual-hosted git repository.

thomasm pushed a commit to branch OAK-9780
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit f54bb8abcf8916b91d09fcfb1689e4d83a39208b
Author: Rishabh Kumar <di...@adobe.com>
AuthorDate: Tue May 17 23:42:53 2022 +0530

    OAK-9757 : removed un-necessary junit
---
 .../oak/plugins/document/MongoDocumentStoreTest.java       | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoDocumentStoreTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoDocumentStoreTest.java
index c41b2f0b0d..5d95a805dd 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoDocumentStoreTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoDocumentStoreTest.java
@@ -20,7 +20,6 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -56,9 +55,6 @@ public class MongoDocumentStoreTest {
     @Rule
     public MongoConnectionFactory connectionFactory = new MongoConnectionFactory();
 
-    @Rule
-    public DocumentMKBuilderProvider builderProvider = new DocumentMKBuilderProvider();
-
 //    private static final boolean MONGO_DB = true;
 //    private static final int NODE_COUNT = 2000;
 
@@ -245,16 +241,6 @@ public class MongoDocumentStoreTest {
         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);
-        DocumentNodeState n = new DocumentNodeState(store, Path.fromString(DocumentMK.LONG_PATH), new RevisionVector(rev));
-        n.asOperation(rev);
-        fail("should not reach this point");
-    }
-
     @Test
     @Ignore
     public void batchInsert() throws Exception {