コード例 #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));
  }