diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-07 22:31:43 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-07 22:31:43 +0100 |
commit | 3f620e3b84dbb8d6625b4c13ca8ee9fd0aa5777c (patch) | |
tree | 4c06e0d16ba4d5e0fc2133b6bc9ed5dca8a63e49 /test/core/src/lombok | |
parent | 889c935ec9f0e45bba1e88b0f256e1f29a734f39 (diff) | |
download | lombok-3f620e3b84dbb8d6625b4c13ca8ee9fd0aa5777c.tar.gz lombok-3f620e3b84dbb8d6625b4c13ca8ee9fd0aa5777c.tar.bz2 lombok-3f620e3b84dbb8d6625b4c13ca8ee9fd0aa5777c.zip |
[fixes #2327] mostly trivial: Added this. for field access and unified code gen of build() methods for `@Builder`.
Diffstat (limited to 'test/core/src/lombok')
-rw-r--r-- | test/core/src/lombok/DirectoryRunner.java | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/core/src/lombok/DirectoryRunner.java b/test/core/src/lombok/DirectoryRunner.java index ffadba8f..116b9d94 100644 --- a/test/core/src/lombok/DirectoryRunner.java +++ b/test/core/src/lombok/DirectoryRunner.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2019 The Project Lombok Authors. + * Copyright (C) 2009-2020 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,20 +24,23 @@ package lombok; import java.io.File; import java.io.FileFilter; import java.io.IOException; +import java.util.Arrays; +import java.util.List; import java.util.Map; import java.util.TreeMap; -import lombok.eclipse.Eclipse; -import lombok.javac.Javac; - import org.junit.runner.Description; import org.junit.runner.Runner; import org.junit.runner.notification.Failure; import org.junit.runner.notification.RunNotifier; +import lombok.eclipse.Eclipse; +import lombok.javac.Javac; + public class DirectoryRunner extends Runner { - /** 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 = ""; + /** Add 1 or more file names to reduce the testset to just the named file(s). No files = test it all. */ + private static final List<String> DEBUG_FOCUS_ON_FILE = Arrays.asList( + ); public enum Compiler { DELOMBOK { @@ -80,7 +83,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.isEmpty() || (" " + DEBUG_FOCUS_ON_FILE + " ").contains(" " + file.getName() + " ")); + (DEBUG_FOCUS_ON_FILE.isEmpty() || DEBUG_FOCUS_ON_FILE.contains(file.getName())); } }; |