@Test public void test_file_matcher_by_default_matches_classes_ending_with_Test_in_all_packages() { PathMatcher matcher = configuration().createTestFileMatcher(FileSystems.getDefault()); assertThat("should match just Test", matcher, matches(Paths.get("Test.class"))); assertThat("should match Test suffix", matcher, matches(Paths.get("XTest.class"))); assertThat("should not match Test prefix", matcher, not(matches(Paths.get("TestX.class")))); assertThat("should not match non-class files", matcher, not(matches(Paths.get("SomeTest.java")))); assertThat("should match in all packages", matcher, matches(Paths.get("com/example/SomeTest.class"))); assertThat("should not match inner classes", matcher, not(matches(Paths.get("Test$Test.class")))); assertThat("should not match inner classes in any package", matcher, not(matches(Paths.get("com/example/Test$Test.class")))); }
public PathMatcher createTestFileMatcher(FileSystem fileSystem) { return new IncludeExcludePathMatcher(fileSystem, getIncludedTestsPattern(), getExcludedTestsPattern()); }
SuiteConfiguration implements Serializable { public PathMatcher createTestFileMatcher(FileSystem fileSystem) { return new IncludeExcludePathMatcher(fileSystem, getIncludedTestsPattern(), getExcludedTestsPattern()); } }
SuiteConfiguration implements Serializable { public PathMatcher createTestFileMatcher(FileSystem fileSystem) { return new IncludeExcludePathMatcher(fileSystem, getIncludedTestsPattern(), getExcludedTestsPattern()); } SuiteConfiguration();   SuiteConfiguration(SuiteConfigurationBuilder src); }
SuiteConfiguration implements Serializable { public PathMatcher createTestFileMatcher(FileSystem fileSystem) { return new IncludeExcludePathMatcher(fileSystem, getIncludedTestsPattern(), getExcludedTestsPattern()); } SuiteConfiguration();   SuiteConfiguration(SuiteConfigurationBuilder src); SuiteConfigurationBuilder melt(); @Override boolean equals(Object that); @Override String toString(); PathMatcher createTestFileMatcher(FileSystem fileSystem); List<URI> getClasspath(); List<String> getJvmOptions(); URI getWorkingDirectory(); String getIncludedTestsPattern(); String getExcludedTestsPattern(); }
SuiteConfiguration implements Serializable { public PathMatcher createTestFileMatcher(FileSystem fileSystem) { return new IncludeExcludePathMatcher(fileSystem, getIncludedTestsPattern(), getExcludedTestsPattern()); } SuiteConfiguration();   SuiteConfiguration(SuiteConfigurationBuilder src); SuiteConfigurationBuilder melt(); @Override boolean equals(Object that); @Override String toString(); PathMatcher createTestFileMatcher(FileSystem fileSystem); List<URI> getClasspath(); List<String> getJvmOptions(); URI getWorkingDirectory(); String getIncludedTestsPattern(); String getExcludedTestsPattern(); static final SuiteConfiguration DEFAULTS; }