private void assertTableExistence(Connection connection, String identifierQuote, String secondTable, String firstTable, String tablePrefix) throws Exception { assert !TableManagerTest.existsTable(connection, new TableName(identifierQuote, tablePrefix, "")) : "this table should not exist!"; assert TableManagerTest.existsTable(connection, new TableName(identifierQuote, tablePrefix, firstTable)); assert TableManagerTest.existsTable(connection, new TableName(identifierQuote, tablePrefix, secondTable)); connection.close(); }
public void testCreateTable() throws Exception { assert !existsTable(connection, tableManager.getTableName()); tableManager.createTable(connection); assert existsTable(connection, tableManager.getTableName()); }
public void testTableQuoting() throws Exception { tableManager.setCacheName("my.cache"); assert !existsTable(connection, tableManager.getTableName()); tableManager.createTable(connection); assert existsTable(connection, tableManager.getTableName()); }