@Test public void testGetReadWriteFixture() throws Exception { final File seedDir = new File(testBaseDir, "testGetReadWriteFixture/seedRepo/segmentstore"); TestUtil.prepareRepo(seedDir, session -> { session.getRootNode().addNode("foo", "nt:unstructured"); session.save(); }); final File globalDir = new File(testBaseDir, "testGetReadWriteFixture/globalRepo/segmentstore"); TestUtil.prepareRepo(globalDir, session -> { }); try (NodeStoreFixture fixture = JcrFactory.getReadWriteFixture(seedDir); NodeStoreFixture globalFixture = JcrFactory.getReadWriteFixture(globalDir)) { TestUtil.compositeWithFixtures(fixture, globalFixture, session -> { session.getWorkspace().getNamespaceRegistry() .registerNamespace("foo", "http: }); } }
public static NodeStoreFixture getReadWriteFixture(final File segmentStore, final String... args) throws Exception { return getNodeStoreFixture(false, segmentStore, args); }
JcrFactory { public static NodeStoreFixture getReadWriteFixture(final File segmentStore, final String... args) throws Exception { return getNodeStoreFixture(false, segmentStore, args); } }
JcrFactory { public static NodeStoreFixture getReadWriteFixture(final File segmentStore, final String... args) throws Exception { return getNodeStoreFixture(false, segmentStore, args); } private  JcrFactory(); }
JcrFactory { public static NodeStoreFixture getReadWriteFixture(final File segmentStore, final String... args) throws Exception { return getNodeStoreFixture(false, segmentStore, args); } private  JcrFactory(); static Repository getJcr(final NodeStoreFixture nodeStoreFixture); static Repository getJcr(final NodeStoreFixture nodeStoreFixture,
                                    final NodeStore globalStore); static NodeStoreFixture getNodeStoreFixture(final boolean readOnly, final String... args); static NodeStoreFixture getNodeStoreFixture(final boolean readOnly, final File segmentStore, final String... args); static NodeStoreFixture getReadOnlyFixture(final File segmentStore, final String... args); static NodeStoreFixture getReadWriteFixture(final File segmentStore, final String... args); }
JcrFactory { public static NodeStoreFixture getReadWriteFixture(final File segmentStore, final String... args) throws Exception { return getNodeStoreFixture(false, segmentStore, args); } private  JcrFactory(); static Repository getJcr(final NodeStoreFixture nodeStoreFixture); static Repository getJcr(final NodeStoreFixture nodeStoreFixture,
                                    final NodeStore globalStore); static NodeStoreFixture getNodeStoreFixture(final boolean readOnly, final String... args); static NodeStoreFixture getNodeStoreFixture(final boolean readOnly, final File segmentStore, final String... args); static NodeStoreFixture getReadOnlyFixture(final File segmentStore, final String... args); static NodeStoreFixture getReadWriteFixture(final File segmentStore, final String... args);  }