@Test(expectedExceptions = Exception.class) public void fail() throws MojoFailureException, MojoExecutionException { final DiagramMojo mojo = new DiagramMojo(); mojo.path = "missing-batch.xml"; mojo.failIfMissing = true; mojo.execute(); }
@Override public void execute() throws MojoExecutionException, MojoFailureException { new DiagramGenerator(path, failIfMissing, view, width, height, adjust, output, format, outputFileName, rotateEdges, layout) { @Override protected void warn(final String s) { getLog().warn(s); } @Override protected void info(String s) { getLog().info(s); } }.execute(); }
DiagramMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { new DiagramGenerator(path, failIfMissing, view, width, height, adjust, output, format, outputFileName, rotateEdges, layout) { @Override protected void warn(final String s) { getLog().warn(s); } @Override protected void info(String s) { getLog().info(s); } }.execute(); } }
DiagramMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { new DiagramGenerator(path, failIfMissing, view, width, height, adjust, output, format, outputFileName, rotateEdges, layout) { @Override protected void warn(final String s) { getLog().warn(s); } @Override protected void info(String s) { getLog().info(s); } }.execute(); }  }
DiagramMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { new DiagramGenerator(path, failIfMissing, view, width, height, adjust, output, format, outputFileName, rotateEdges, layout) { @Override protected void warn(final String s) { getLog().warn(s); } @Override protected void info(String s) { getLog().info(s); } }.execute(); }  @Override void execute(); }
DiagramMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { new DiagramGenerator(path, failIfMissing, view, width, height, adjust, output, format, outputFileName, rotateEdges, layout) { @Override protected void warn(final String s) { getLog().warn(s); } @Override protected void info(String s) { getLog().info(s); } }.execute(); }  @Override void execute();  }