use of org.sirix.api.XdmNodeWriteTrx in project sirix by sirixdb.
the class TestHelper method createTestDocument.
/**
* Creating a test document at {@link PATHS#PATH1}.
*
* @throws SirixException
*/
public static void createTestDocument() throws SirixException {
try (final Database database = TestHelper.getDatabase(PATHS.PATH1.getFile())) {
database.createResource(new ResourceConfiguration.Builder(RESOURCE, PATHS.PATH1.config).build());
try (final ResourceManager manager = database.getResourceManager(new ResourceManagerConfiguration.Builder(RESOURCE).build());
final XdmNodeWriteTrx wtx = manager.beginNodeWriteTrx()) {
DocumentCreater.create(wtx);
wtx.commit();
}
}
}
use of org.sirix.api.XdmNodeWriteTrx in project sirix by sirixdb.
the class HashTest method testPostorderDeep.
@Test
public void testPostorderDeep() throws SirixException {
final XdmNodeWriteTrx wtx = createWtx(HashKind.POSTORDER);
testDeepTree(wtx);
}
use of org.sirix.api.XdmNodeWriteTrx in project sirix by sirixdb.
the class HashTest method testRollingInsertRemove.
@Test
public void testRollingInsertRemove() throws SirixException {
final XdmNodeWriteTrx wtx = createWtx(HashKind.ROLLING);
testHashTreeWithInsertAndRemove(wtx);
}
use of org.sirix.api.XdmNodeWriteTrx in project sirix by sirixdb.
the class HashTest method testPostorderInsertRemove.
@Test
public void testPostorderInsertRemove() throws SirixException {
final XdmNodeWriteTrx wtx = createWtx(HashKind.POSTORDER);
testHashTreeWithInsertAndRemove(wtx);
}
use of org.sirix.api.XdmNodeWriteTrx in project sirix by sirixdb.
the class HashTest method testPostorderSetter.
@Test
public void testPostorderSetter() throws SirixException {
final XdmNodeWriteTrx wtx = createWtx(HashKind.POSTORDER);
testSetter(wtx);
}
Aggregations