/** * Verify that the named kb does not exist. * * @throws SailException */ private void assertKBNotFound(final Journal jnl, final String namespace) throws RepositoryException, SailException { // Attempt to discover the KB instance. BigdataSailRepositoryConnection conn = null; try { // Request query connection. conn = getQueryConnection(jnl, namespace, ITx.READ_COMMITTED); // Verify KB does not exist. assertNull(namespace, conn); } finally { // Ensure connection is closed. if (conn != null) conn.close(); } }
/** * Verify that the named kb exists. * * @throws SailException */ private void assertKBExists(final Journal jnl, final String namespace) throws RepositoryException, SailException { // Attempt to discover the KB instance. BigdataSailRepositoryConnection conn = null; try { // Request query connection. conn = getQueryConnection(jnl, namespace, ITx.READ_COMMITTED); // Verify KB exists. assertNotNull(namespace, conn); } finally { // Ensure connection is closed. if (conn != null) conn.close(); } }
/** * Verify that the named kb exists. * * @throws SailException */ private void assertKBExists(final Journal jnl, final String namespace) throws RepositoryException, SailException { // Attempt to discover the KB instance. BigdataSailRepositoryConnection conn = null; try { // Request query connection. conn = getQueryConnection(jnl, namespace, ITx.READ_COMMITTED); // Verify KB exists. assertNotNull(namespace, conn); } finally { // Ensure connection is closed. if (conn != null) conn.close(); } }
/** * Verify that the named kb does not exist. * * @throws SailException */ private void assertKBNotFound(final Journal jnl, final String namespace) throws RepositoryException, SailException { // Attempt to discover the KB instance. BigdataSailRepositoryConnection conn = null; try { // Request query connection. conn = getQueryConnection(jnl, namespace, ITx.READ_COMMITTED); // Verify KB does not exist. assertNull(namespace, conn); } finally { // Ensure connection is closed. if (conn != null) conn.close(); } }