test_class.declarator: testBaseDir = new File("target/repos/JcrFactoryTest")
test_class.modifier: final
test_class.original_string: final File testBaseDir = new File("target/repos/JcrFactoryTest");
test_class.type: File
test_class.var_name: testBaseDir
test_class.file: webster/src/test/java/net/adamcin/oakpal/webster/JcrFactoryTest.java
test_class.identifier: JcrFactoryTest
test_case.body: @Test
      public void testGetJcr() throws Exception {
          final File seedDir = new File(testBaseDir, "testGetJcr/seedRepo/segmentstore");
          final File globalDir = new File(testBaseDir, "testGetJcr/globalRepo/segmentstore");
  
          final String superPath = "/apps/myapp/components/sup1";
          final String resultPath = "/apps/myapp/components/res1";
  
          TestUtil.prepareRepo(seedDir, session -> {
              final URL slingNodetypes = getClass().getResource("/sling_nodetypes.cnd");
              TestUtil.installCndFromURL(session, slingNodetypes);
  
              Node sup1 = JcrUtils.getOrCreateByPath(superPath, "sling:Folder", session);
              Node res1 = JcrUtils.getOrCreateByPath(resultPath, "sling:Folder", session);
              res1.addMixin("sling:ResourceSuperType");
              res1.setProperty("sling:resourceSuperType", superPath);
              session.save();
          });
  
          TestUtil.withReadOnlyFixture(seedDir, session -> {
              QueryManager qm = session.getWorkspace().getQueryManager();
  
              final String stmt = "select * from [sling:ResourceSuperType] as a OPTION(TRAVERSAL FAIL, INDEX NAME nodetype)";
              final Query query = qm.createQuery(stmt, Query.JCR_SQL2);
              QueryResult result = query.execute();
              final NodeIterator it = result.getNodes();
              assertTrue("Result hasNext()", it.hasNext());
              final Node next = it.nextNode();
              assertFalse("Result has no more", it.hasNext());
              assertEquals("Path is correct", resultPath, next.getPath());
              assertEquals("sling:resourceSuperType value is correct", superPath,
                      next.getProperty("sling:resourceSuperType").getString());
          });
      }
test_case.class_method_signature: JcrFactoryTest.testGetJcr()
test_case.full_signature: @Test public void testGetJcr()
test_case.identifier: testGetJcr
test_case.invocations: prepareRepo getResource getClass installCndFromURL getOrCreateByPath getOrCreateByPath addMixin setProperty save withReadOnlyFixture getQueryManager getWorkspace createQuery execute getNodes assertTrue hasNext nextNode assertFalse hasNext assertEquals getPath assertEquals getString getProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetJcr()
focal_class.file: webster/src/main/java/net/adamcin/oakpal/webster/JcrFactory.java
focal_class.identifier: JcrFactory
focal_class.class_method_signature: JcrFactory.JcrFactory()
focal_class.full_signature: private  JcrFactory()
focal_class.identifier: JcrFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  JcrFactory()
focal_class.class_method_signature: JcrFactory.getJcr(final NodeStoreFixture nodeStoreFixture)
focal_class.full_signature: public static Repository getJcr(final NodeStoreFixture nodeStoreFixture)
focal_class.identifier: getJcr
focal_class.modifiers: public static
focal_class.parameters: (final NodeStoreFixture nodeStoreFixture)
focal_class.return: Repository
focal_class.signature: Repository getJcr(final NodeStoreFixture nodeStoreFixture)
focal_class.class_method_signature: JcrFactory.getJcr(final NodeStoreFixture nodeStoreFixture,
                                      final NodeStore globalStore)
focal_class.full_signature: public static Repository getJcr(final NodeStoreFixture nodeStoreFixture,
                                      final NodeStore globalStore)
focal_class.identifier: getJcr
focal_class.modifiers: public static
focal_class.parameters: (final NodeStoreFixture nodeStoreFixture,
                                      final NodeStore globalStore)
focal_class.return: Repository
focal_class.signature: Repository getJcr(final NodeStoreFixture nodeStoreFixture,
                                      final NodeStore globalStore)
focal_class.class_method_signature: JcrFactory.getNodeStoreFixture(final boolean readOnly, final String... args)
focal_class.full_signature: public static NodeStoreFixture getNodeStoreFixture(final boolean readOnly, final String... args)
focal_class.identifier: getNodeStoreFixture
focal_class.modifiers: public static
focal_class.parameters: (final boolean readOnly, final String... args)
focal_class.return: NodeStoreFixture
focal_class.signature: NodeStoreFixture getNodeStoreFixture(final boolean readOnly, final String... args)
focal_class.class_method_signature: JcrFactory.getNodeStoreFixture(final boolean readOnly, final File segmentStore, final String... args)
focal_class.full_signature: public static NodeStoreFixture getNodeStoreFixture(final boolean readOnly, final File segmentStore, final String... args)
focal_class.identifier: getNodeStoreFixture
focal_class.modifiers: public static
focal_class.parameters: (final boolean readOnly, final File segmentStore, final String... args)
focal_class.return: NodeStoreFixture
focal_class.signature: NodeStoreFixture getNodeStoreFixture(final boolean readOnly, final File segmentStore, final String... args)
focal_class.class_method_signature: JcrFactory.getReadOnlyFixture(final File segmentStore, final String... args)
focal_class.full_signature: public static NodeStoreFixture getReadOnlyFixture(final File segmentStore, final String... args)
focal_class.identifier: getReadOnlyFixture
focal_class.modifiers: public static
focal_class.parameters: (final File segmentStore, final String... args)
focal_class.return: NodeStoreFixture
focal_class.signature: NodeStoreFixture getReadOnlyFixture(final File segmentStore, final String... args)
focal_class.class_method_signature: JcrFactory.getReadWriteFixture(final File segmentStore, final String... args)
focal_class.full_signature: public static NodeStoreFixture getReadWriteFixture(final File segmentStore, final String... args)
focal_class.identifier: getReadWriteFixture
focal_class.modifiers: public static
focal_class.parameters: (final File segmentStore, final String... args)
focal_class.return: NodeStoreFixture
focal_class.signature: NodeStoreFixture getReadWriteFixture(final File segmentStore, final String... args)
focal_method.body: public static Repository getJcr(final NodeStoreFixture nodeStoreFixture)
              throws IOException, CommitFailedException {
          return getJcr(nodeStoreFixture, new MemoryNodeStore());
      }
focal_method.class_method_signature: JcrFactory.getJcr(final NodeStoreFixture nodeStoreFixture)
focal_method.full_signature: public static Repository getJcr(final NodeStoreFixture nodeStoreFixture)
focal_method.identifier: getJcr
focal_method.invocations: getJcr
focal_method.modifiers: public static
focal_method.parameters: (final NodeStoreFixture nodeStoreFixture)
focal_method.return: Repository
focal_method.signature: Repository getJcr(final NodeStoreFixture nodeStoreFixture)