408409410411412413414415416417418
} catch (SQLException e) {} // Run the test. try { new dblook(new String[] { "-d", sourceDBUrl, "-o", dbName + ".sql", "-td", "" } );
506507508509510511512513514515516
printAsHeader("\nDumping DDL w/ invalid url, and " + "writing\nerror to the log:\n"); // Url is intentionally incorrect; it will cause an error. new dblook(new String[] { "-o", dbName + ".sql", "-d", dbName } ); }
565566567568569570571572573574575
fullArgs[1] = sourceDBUrl; for (int i = 2; i < fullArgs.length; i++) fullArgs[i] = args[i-2]; try { new dblook(fullArgs); } catch (Exception e) { System.out.println("FAILED: to run dblook: "); e.printStackTrace(System.out); }
623624625626627628629630631632633
System.out.println( "\n************\n" + "Msg Test 3\n" + "************\n"); try { new dblook(new String[] { "-verbose" }); } catch (Exception e) { System.out.println("FAILED: to run dblook: "); e.printStackTrace(System.out); }
197198199200201202203204205206207
// // Create a dblook script. // TestConfiguration config = getTestConfiguration(); String dbName = config.getPhysicalDatabaseName( config.getDefaultDatabaseName() ); new dblook ( new String[] { "-d", "jdbc:derby:" + dbName,
406407408409410411412413414415416
504505506507508509510511512513514
563564565566567568569570571572573
621622623624625626627628629630631
416417418419420421422423424425426