diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-08-22 23:26:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 23:26:55 +0200 |
commit | db19a9fd8320a0abf7a530e9e35639089ce77050 (patch) | |
tree | bfd83d64061f1606470e91ae24dc4c8693b10015 /test/core/src/lombok/DirectoryRunner.java | |
parent | 819d1956761f6077fdf897e77c4f6ac47e92104e (diff) | |
parent | ba8fd3782819682b3f4081cb410b6d43055989b9 (diff) | |
download | lombok-db19a9fd8320a0abf7a530e9e35639089ce77050.tar.gz lombok-db19a9fd8320a0abf7a530e9e35639089ce77050.tar.bz2 lombok-db19a9fd8320a0abf7a530e9e35639089ce77050.zip |
Merge branch 'master' into clone-type
Diffstat (limited to 'test/core/src/lombok/DirectoryRunner.java')
-rw-r--r-- | test/core/src/lombok/DirectoryRunner.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/core/src/lombok/DirectoryRunner.java b/test/core/src/lombok/DirectoryRunner.java index 9410b4c7..ffadba8f 100644 --- a/test/core/src/lombok/DirectoryRunner.java +++ b/test/core/src/lombok/DirectoryRunner.java @@ -36,7 +36,8 @@ import org.junit.runner.notification.Failure; import org.junit.runner.notification.RunNotifier; public class DirectoryRunner extends Runner { - private static final String DEBUG_FOCUS_ON_FILE = null; + /** Fill in a file name (or multiple, space separated) to reduce the testset to just the named file(s). */ + private static final String DEBUG_FOCUS_ON_FILE = ""; public enum Compiler { DELOMBOK { @@ -79,7 +80,7 @@ public class DirectoryRunner extends Runner { private static final FileFilter JAVA_FILE_FILTER = new FileFilter() { @Override public boolean accept(File file) { return file.isFile() && file.getName().endsWith(".java") && - (DEBUG_FOCUS_ON_FILE == null || file.getName().equals(DEBUG_FOCUS_ON_FILE)); + (DEBUG_FOCUS_ON_FILE.isEmpty() || (" " + DEBUG_FOCUS_ON_FILE + " ").contains(" " + file.getName() + " ")); } }; |