use of org.xmldb.api.modules.CollectionManagementService in project exist by eXist-db.
the class MoveCollectionTest method tearDown.
@After
public void tearDown() throws XMLDBException {
final Collection root = DatabaseManager.getCollection(getBaseUri() + "/db", TestUtils.ADMIN_DB_USER, TestUtils.ADMIN_DB_PWD);
final CollectionManagementService service = (CollectionManagementService) root.getService("CollectionManagementService", "1.0");
service.removeCollection(TEST_COLLECTION_NAME);
testCollection = null;
}
use of org.xmldb.api.modules.CollectionManagementService in project exist by eXist-db.
the class BinaryResourceUpdateTest method tearDown.
@After
public void tearDown() throws XMLDBException {
// delete the test collection
final CollectionManagementService service = (CollectionManagementService) testCollection.getParentCollection().getService("CollectionManagementService", "1.0");
service.removeCollection(TEST_COLLECTION);
binFile = null;
xmlFile = null;
}
use of org.xmldb.api.modules.CollectionManagementService in project exist by eXist-db.
the class BinaryResourceUpdateTest method setUp.
@Before
public void setUp() throws Exception {
final CollectionManagementService service = (CollectionManagementService) existEmbeddedServer.getRoot().getService("CollectionManagementService", "1.0");
testCollection = service.createCollection(TEST_COLLECTION);
assertNotNull(testCollection);
binFile = getClass().getClassLoader().getResource("org/exist/xmldb/test.bin");
assertNotNull(binFile);
xmlFile = getClass().getClassLoader().getResource("org/exist/xmldb/test.xml");
assertNotNull(xmlFile);
}
use of org.xmldb.api.modules.CollectionManagementService in project exist by eXist-db.
the class CollectionTest method setup.
@Before
public void setup() throws XMLDBException {
final CollectionManagementService service = (CollectionManagementService) existEmbeddedServer.getRoot().getService("CollectionManagementService", "1.0");
service.createCollection(TestConstants.SPECIAL_NAME);
}
use of org.xmldb.api.modules.CollectionManagementService in project exist by eXist-db.
the class DeleteCollectionTest method tearDown.
@After
public void tearDown() throws XMLDBException {
final Collection root = DatabaseManager.getCollection(getBaseUri() + "/db", TestUtils.ADMIN_DB_USER, TestUtils.ADMIN_DB_PWD);
final CollectionManagementService service = (CollectionManagementService) root.getService("CollectionManagementService", "1.0");
service.removeCollection(TEST_COLLECTION_NAME);
testCollection = null;
}
Aggregations