@Test public void shouldFilterByIntegrationTestSystemProperty() { getProperties().setProperty("it.test", "**/*" + getClass().getSimpleName() + CLASS_EXT); final List<String> classes = uut.getTargetClasses(); assertThat(classes.isEmpty(), is(false)); assertThat(classes, contains(binaryToOsClass(getClass().getCanonicalName()))); }
@Override public List<String> getTargetClasses() { if (deltas != null) { return deltas; } final String[] resolvedIncludes = resolveIncludes(); final DirectoryScanner scanner = new DirectoryScanner(); if (resolvedIncludes != null && resolvedIncludes.length > 0) { scanner.setIncludes(resolvedIncludes); } if (excludes != null && excludes.length > 0) { scanner.setExcludes(excludes); } scanner.setBasedir(targetDirectory); scanner.setCaseSensitive(true); scanner.scan(); return new ArrayList<String>(asList(scanner.getIncludedFiles())); }
MavenColaProvider implements IColaProvider { @Override public List<String> getTargetClasses() { if (deltas != null) { return deltas; } final String[] resolvedIncludes = resolveIncludes(); final DirectoryScanner scanner = new DirectoryScanner(); if (resolvedIncludes != null && resolvedIncludes.length > 0) { scanner.setIncludes(resolvedIncludes); } if (excludes != null && excludes.length > 0) { scanner.setExcludes(excludes); } scanner.setBasedir(targetDirectory); scanner.setCaseSensitive(true); scanner.scan(); return new ArrayList<String>(asList(scanner.getIncludedFiles())); } }
MavenColaProvider implements IColaProvider { @Override public List<String> getTargetClasses() { if (deltas != null) { return deltas; } final String[] resolvedIncludes = resolveIncludes(); final DirectoryScanner scanner = new DirectoryScanner(); if (resolvedIncludes != null && resolvedIncludes.length > 0) { scanner.setIncludes(resolvedIncludes); } if (excludes != null && excludes.length > 0) { scanner.setExcludes(excludes); } scanner.setBasedir(targetDirectory); scanner.setCaseSensitive(true); scanner.scan(); return new ArrayList<String>(asList(scanner.getIncludedFiles())); } MavenColaProvider(final String targetDirectory, final List<String> classpathElements,
        final String[] includes, final String[] excludes, final List<String> deltas); }
MavenColaProvider implements IColaProvider { @Override public List<String> getTargetClasses() { if (deltas != null) { return deltas; } final String[] resolvedIncludes = resolveIncludes(); final DirectoryScanner scanner = new DirectoryScanner(); if (resolvedIncludes != null && resolvedIncludes.length > 0) { scanner.setIncludes(resolvedIncludes); } if (excludes != null && excludes.length > 0) { scanner.setExcludes(excludes); } scanner.setBasedir(targetDirectory); scanner.setCaseSensitive(true); scanner.scan(); return new ArrayList<String>(asList(scanner.getIncludedFiles())); } MavenColaProvider(final String targetDirectory, final List<String> classpathElements,
        final String[] includes, final String[] excludes, final List<String> deltas); @Override String getTargetDirectory(); @Override URLClassLoader getTargetClassLoader(); @Override List<String> getTargetClasses(); }
MavenColaProvider implements IColaProvider { @Override public List<String> getTargetClasses() { if (deltas != null) { return deltas; } final String[] resolvedIncludes = resolveIncludes(); final DirectoryScanner scanner = new DirectoryScanner(); if (resolvedIncludes != null && resolvedIncludes.length > 0) { scanner.setIncludes(resolvedIncludes); } if (excludes != null && excludes.length > 0) { scanner.setExcludes(excludes); } scanner.setBasedir(targetDirectory); scanner.setCaseSensitive(true); scanner.scan(); return new ArrayList<String>(asList(scanner.getIncludedFiles())); } MavenColaProvider(final String targetDirectory, final List<String> classpathElements,
        final String[] includes, final String[] excludes, final List<String> deltas); @Override String getTargetDirectory(); @Override URLClassLoader getTargetClassLoader(); @Override List<String> getTargetClasses();  }