@Test public void aValidSingleFileNameShouldBeAccepted() throws IOException { JacocoScannerPlugin plugin = new JacocoScannerPlugin(); String path = "jacocoTestReport.xml"; final boolean accepted = plugin.acceptsPath(path); assertTrue("A valid path should be accepted", accepted); }
boolean acceptsPath(String path) { return path.endsWith(jacocoFileName) || parentDirectoryHasAcceptableName(path); }
JacocoScannerPlugin extends AbstractScannerPlugin<FileResource,JacocoReportDescriptor> { boolean acceptsPath(String path) { return path.endsWith(jacocoFileName) || parentDirectoryHasAcceptableName(path); } }
JacocoScannerPlugin extends AbstractScannerPlugin<FileResource,JacocoReportDescriptor> { boolean acceptsPath(String path) { return path.endsWith(jacocoFileName) || parentDirectoryHasAcceptableName(path); } JacocoScannerPlugin(); }
JacocoScannerPlugin extends AbstractScannerPlugin<FileResource,JacocoReportDescriptor> { boolean acceptsPath(String path) { return path.endsWith(jacocoFileName) || parentDirectoryHasAcceptableName(path); } JacocoScannerPlugin(); @Override boolean accepts(final FileResource item, String path, Scope scope); @Override JacocoReportDescriptor scan(final FileResource file, String path, Scope scope, Scanner scanner); }
JacocoScannerPlugin extends AbstractScannerPlugin<FileResource,JacocoReportDescriptor> { boolean acceptsPath(String path) { return path.endsWith(jacocoFileName) || parentDirectoryHasAcceptableName(path); } JacocoScannerPlugin(); @Override boolean accepts(final FileResource item, String path, Scope scope); @Override JacocoReportDescriptor scan(final FileResource file, String path, Scope scope, Scanner scanner); static final String JQASSISTANT_PLUGIN_JACOCO_FILENAME; static final String JQASSISTANT_PLUGIN_JACOCO_DIRNAME; }