@Test public void testAccept() throws MojoExecutionException { AsciidocMojo mojo = new AsciidocMojo(); mojo.basedir = basedir; mojo.buildDirectory = new File(mojo.basedir, "target"); mojo.doctype = "article"; mojo.backend = "html5"; mojo.execute(); assertThat(mojo.accept(new File("hello.ad"))).isTrue(); assertThat(mojo.accept(new File("hello.adoc"))).isTrue(); assertThat(mojo.accept(new File("hello.asciidoc"))).isTrue(); assertThat(mojo.accept(new File("hello.html"))).isFalse(); mojo.extensions = ImmutableList.of("ascii"); mojo.execute(); assertThat(mojo.accept(new File("hello.ad"))).isFalse(); assertThat(mojo.accept(new File("hello.ascii"))).isTrue(); }
@Override public boolean accept(File file) { return WatcherUtils.hasExtension(file, extensions); }
AsciidocMojo extends AbstractWisdomWatcherMojo implements Constants { @Override public boolean accept(File file) { return WatcherUtils.hasExtension(file, extensions); } }
AsciidocMojo extends AbstractWisdomWatcherMojo implements Constants { @Override public boolean accept(File file) { return WatcherUtils.hasExtension(file, extensions); }  }
AsciidocMojo extends AbstractWisdomWatcherMojo implements Constants { @Override public boolean accept(File file) { return WatcherUtils.hasExtension(file, extensions); }  void execute(); @Override boolean accept(File file); @Override boolean fileCreated(File file); @Override boolean fileUpdated(File file); @Override boolean fileDeleted(File file); }
AsciidocMojo extends AbstractWisdomWatcherMojo implements Constants { @Override public boolean accept(File file) { return WatcherUtils.hasExtension(file, extensions); }  void execute(); @Override boolean accept(File file); @Override boolean fileCreated(File file); @Override boolean fileUpdated(File file); @Override boolean fileDeleted(File file);  }