@Override public GeoServerRoleStore createStore(GeoServerRoleService service) throws IOException { JDBCRoleStore store = (JDBCRoleStore) super.createStore(service); try { JDBCTestSupport.dropExistingTables(store, store.getConnection()); } catch (SQLException e) { throw new IOException(e); } store.createTables(); store.store(); return store; }
@Override public GeoServerRoleStore createStore(GeoServerRoleService service) throws IOException { JDBCRoleStore store = (JDBCRoleStore) super.createStore(service); try { JDBCTestSupport.dropExistingTables(store,store.getConnection()); } catch (SQLException e) { throw new IOException(e); } store.createTables(); store.store(); return store; }
@Override public GeoServerRoleStore createStore(GeoServerRoleService service) throws IOException { JDBCRoleStore store = (JDBCRoleStore) super.createStore(service); try { JDBCTestSupport.dropExistingTables(store, store.getConnection()); } catch (SQLException e) { throw new IOException(e); } store.createTables(); store.store(); return store; }
@Override public GeoServerRoleStore createStore(GeoServerRoleService service) throws IOException { JDBCRoleStore store = (JDBCRoleStore) super.createStore(service); try { JDBCTestSupport.dropExistingTables(store, store.getConnection()); } catch (SQLException e) { throw new IOException(e); } store.createTables(); store.store(); return store; }
@Override public GeoServerRoleStore createStore(GeoServerRoleService service) throws IOException { JDBCRoleStore store = (JDBCRoleStore) super.createStore(service); try { JDBCTestSupport.dropExistingTables(store,store.getConnection()); } catch (SQLException e) { throw new IOException(e); } store.createTables(); store.store(); return store; }
@Override public GeoServerRoleStore createStore(GeoServerRoleService service) throws IOException { JDBCRoleStore store = (JDBCRoleStore) super.createStore(service); try { JDBCTestSupport.dropExistingTables(store,store.getConnection()); } catch (SQLException e) { throw new IOException(e); } store.createTables(); store.store(); return store; }
public void testRoleDatabaseSetup() { try { JDBCRoleStore jdbcStore = (JDBCRoleStore) store; assertTrue(jdbcStore.tablesAlreadyCreated()); jdbcStore.checkDDLStatements(); jdbcStore.checkDMLStatements(); jdbcStore.clear(); jdbcStore.dropTables(); jdbcStore.store(); assertFalse(jdbcStore.tablesAlreadyCreated()); jdbcStore.load(); } catch (IOException ex) { Assert.fail(ex.getMessage()); } }
@Test public void testRoleDatabaseSetup() { try { JDBCRoleStore jdbcStore = (JDBCRoleStore) store; assertTrue(jdbcStore.tablesAlreadyCreated()); jdbcStore.checkDDLStatements(); jdbcStore.checkDMLStatements(); jdbcStore.clear(); jdbcStore.dropTables(); jdbcStore.store(); assertFalse(jdbcStore.tablesAlreadyCreated()); jdbcStore.load(); } catch (IOException ex) { Assert.fail(ex.getMessage()); } }