public void testGetServiceClosedFail() throws Exception { this.getMyVC(); VirtualCollection vc = this.getMyVC(); vc.close(); try { vc.getService("SixdmlStatementService", "1.0"); assertTrue(false); } catch (XMLDBException e) { assertEquals(ErrorCodes.COLLECTION_CLOSED, e.errorCode); } }
protected Service getService(String name) throws Exception { VirtualCollection vcoll = this.getMyVC(); return vcoll.getService(name, "1.0"); }