use of org.exist.xmldb.DatabaseImpl in project exist by eXist-db.
the class DeepEmbeddedBackupRestoreTest method registerXmldbDatabaseDriver.
@BeforeClass
public static void registerXmldbDatabaseDriver() throws XMLDBException {
final DatabaseImpl databaseImpl = new DatabaseImpl();
DatabaseManager.registerDatabase(databaseImpl);
}
use of org.exist.xmldb.DatabaseImpl in project exist by eXist-db.
the class CopyCollectionRecoveryTest method storeAndReadXmldb.
@Test
public void storeAndReadXmldb() throws DatabaseConfigurationException, XMLDBException, EXistException, IOException {
// initialize xml:db driver
final Database database = new DatabaseImpl();
database.setProperty("create-database", "true");
DatabaseManager.registerDatabase(database);
BrokerPool.FORCE_CORRUPTION = false;
xmldbStore();
existEmbeddedServer.restart();
BrokerPool.FORCE_CORRUPTION = false;
xmldbRead();
}
Aggregations