For Apache Commons BeanUtils until all components migrate to JUnit 5.

This commit is contained in:
Gary Gregory 2024-06-18 10:57:09 -04:00
parent f028b114d0
commit d61cf2132d
1 changed files with 23 additions and 2 deletions

View File

@ -150,12 +150,12 @@ public class BulkTest implements Cloneable {
* test should be ignored. It's also displayed in the text runner * test should be ignored. It's also displayed in the text runner
* to ease debugging. * to ease debugging.
*/ */
String verboseName; private String verboseName;
/** /**
* the name of the simple test method * the name of the simple test method
*/ */
private final String name; private String name;
/** /**
* Constructs a new {@code BulkTest} instance that will run the * Constructs a new {@code BulkTest} instance that will run the
@ -191,6 +191,13 @@ public class BulkTest implements Cloneable {
return name; 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.<P> * Returns an array of test names to ignore.<P>
* *
@ -228,6 +235,20 @@ public class BulkTest implements Cloneable {
return null; 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}. * Returns the display name of this {@code BulkTest}.
* *