203204205206207208209210211212213
public static Server startH2Server() { try { // start h2 in memory database Server server = Server.createTcpServer(new String[0]); server.start(); return server; } catch (Throwable t) { throw new RuntimeException("Could not start H2 server", t); } }
209210211212213214215216217218219
8990919293949596979899
fail("Should not have made a connection."); } catch(Exception ok) {} Server server = Server.createTcpServer(new String[]{"-baseDir", "target"}); server.start(); try { while(!server.isRunning(false)) { Thread.sleep(100); }
207208209210211212213214215216217
198199200201202203204205206207208