コード例 #1
0
  private void executeAndCheckForOutputFile(
      final String executableName, final Executable executable, final List<String> failures)
      throws Exception {
    final File testOutputFile =
        File.createTempFile("schemacrawler." + executableName + ".", ".test");
    testOutputFile.delete();

    executable.getOutputOptions().setOutputFileName(testOutputFile.getAbsolutePath());
    executable.execute(testUtility.getConnection());

    failures.addAll(
        TestUtility.compareOutput(executableName + ".txt", testOutputFile, (OutputFormat) null));
  }
コード例 #2
0
 @Test(expected = SQLException.class)
 public void retrieverConnectionClosed() throws SQLException, SchemaCrawlerException {
   final Connection connection = testUtility.getConnection();
   connection.close();
   final RetrieverConnection retrieverConnection = new RetrieverConnection(connection, null);
 }