From 984570df78fe26e56348c28c83b86b7e5ab20ada Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 29 Jan 2019 01:34:16 +0100 Subject: [test] Made it easier to run the tests on just one of the resource files. --- test/core/src/lombok/DirectoryRunner.java | 9 ++++++--- 1 file 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)); } }; -- cgit