From d61cf2132de3b1caa74c5279bfba65065f499ff6 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 18 Jun 2024 10:57:09 -0400 Subject: [PATCH] For Apache Commons BeanUtils until all components migrate to JUnit 5. --- .../apache/commons/collections4/BulkTest.java | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/BulkTest.java b/src/test/java/org/apache/commons/collections4/BulkTest.java index 8170c98911..2573477378 100644 --- a/src/test/java/org/apache/commons/collections4/BulkTest.java +++ b/src/test/java/org/apache/commons/collections4/BulkTest.java @@ -150,12 +150,12 @@ public class BulkTest implements Cloneable { * test should be ignored. It's also displayed in the text runner * to ease debugging. */ - String verboseName; + private String verboseName; /** * the name of the simple test method */ - private final String name; + private String name; /** * Constructs a new {@code BulkTest} instance that will run the @@ -191,6 +191,13 @@ public String getName() { return name; } + /** + * For Apache Commons BeanUtils until all components migrate to JUnit 5. + */ + public String getVerboseName() { + return verboseName; + } + /** * Returns an array of test names to ignore.

* @@ -228,6 +235,20 @@ public String[] ignoredTests() { return null; } + /** + * For Apache Commons BeanUtils until all components migrate to JUnit 5. + */ + public void setName(final String name) { + this.name = name; + } + + /** + * For Apache Commons BeanUtils until all components migrate to JUnit 5. + */ + public void setVerboseName(final String verboseName) { + this.verboseName = verboseName; + } + /** * Returns the display name of this {@code BulkTest}. *