@Test public void canGenerate() throws IOException, SchemaCrawlerException { final Path dotFile = copyResourceToTempFile("/javaexecutor/input.dot"); final Path outputFile = createTempFile("sc", ".dot"); assertThat(new GraphvizJavaExecutor(dotFile, outputFile, DiagramOutputFormat.png).canGenerate(), is(true)); assertThat(new GraphvizJavaExecutor(dotFile, outputFile, DiagramOutputFormat.scdot).canGenerate(), is(false)); }
@Override public boolean canGenerate() { return isGraphvizJavaAvailable(diagramOutputFormat); }
GraphvizJavaExecutor extends AbstractGraphProcessExecutor { @Override public boolean canGenerate() { return isGraphvizJavaAvailable(diagramOutputFormat); } }
GraphvizJavaExecutor extends AbstractGraphProcessExecutor { @Override public boolean canGenerate() { return isGraphvizJavaAvailable(diagramOutputFormat); } GraphvizJavaExecutor(final Path dotFile,
                       final Path outputFile,
                       final DiagramOutputFormat diagramOutputFormat); }
GraphvizJavaExecutor extends AbstractGraphProcessExecutor { @Override public boolean canGenerate() { return isGraphvizJavaAvailable(diagramOutputFormat); } GraphvizJavaExecutor(final Path dotFile,
                       final Path outputFile,
                       final DiagramOutputFormat diagramOutputFormat); @Override Boolean call(); @Override boolean canGenerate(); }
GraphvizJavaExecutor extends AbstractGraphProcessExecutor { @Override public boolean canGenerate() { return isGraphvizJavaAvailable(diagramOutputFormat); } GraphvizJavaExecutor(final Path dotFile,
                       final Path outputFile,
                       final DiagramOutputFormat diagramOutputFormat); @Override Boolean call(); @Override boolean canGenerate();  }