diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-01-29 01:34:16 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-01-29 01:34:22 +0100 |
commit | 984570df78fe26e56348c28c83b86b7e5ab20ada (patch) | |
tree | 811087ed4d8df786653dcfa87320bae7d39c3db0 | |
parent | 3d0beec38d8d19e8c90df56d7f4297d1c5f332ee (diff) | |
download | lombok-984570df78fe26e56348c28c83b86b7e5ab20ada.tar.gz lombok-984570df78fe26e56348c28c83b86b7e5ab20ada.tar.bz2 lombok-984570df78fe26e56348c28c83b86b7e5ab20ada.zip |
[test] Made it easier to run the tests on just one of the resource files.
-rw-r--r-- | test/core/src/lombok/DirectoryRunner.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/core/src/lombok/DirectoryRunner.java b/test/core/src/lombok/DirectoryRunner.java index 72f01de1..ea15cdb9 100644 --- a/test/core/src/lombok/DirectoryRunner.java +++ b/test/core/src/lombok/DirectoryRunner.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2015 The Project Lombok Authors. + * Copyright (C) 2009-2019 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 @@ -36,6 +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; + public enum Compiler { DELOMBOK { @Override public int getVersion() { @@ -73,10 +75,11 @@ public class DirectoryRunner extends Runner { public abstract boolean expectChanges(); } - + private static final FileFilter JAVA_FILE_FILTER = new FileFilter() { @Override public boolean accept(File file) { - return file.isFile() && file.getName().endsWith(".java"); + return file.isFile() && file.getName().endsWith(".java") && + (DEBUG_FOCUS_ON_FILE == null || file.getName().equals(DEBUG_FOCUS_ON_FILE)); } }; |