This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git
The following commit(s) were added to refs/heads/master by this push:
new 6dfbcc29 Use JUnit 5 conventions
6dfbcc29 is described below
commit 6dfbcc2991eb21ca59f375d067c470e004360523
Author: Gary Gregory <[email protected]>
AuthorDate: Sat May 16 11:05:59 2026 +0000
Use JUnit 5 conventions
---
src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java | 2 +-
src/test/java/org/apache/commons/cli/help/TextHelpAppendableTest.java | 4 ++--
.../commons/cli/help/{TextStyleTests.java => TextStyleTest.java} | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
b/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
index 41e9c08d..4e54fb29 100644
--- a/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
+++ b/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
@@ -161,7 +161,7 @@ class HelpFormatterTest {
}
@Test
- public void testPrintHelpWithIterableOptions() throws IOException {
+ void testPrintHelpWithIterableOptions() throws IOException {
final StringBuilder sb = new StringBuilder();
final TextHelpAppendable serializer = new TextHelpAppendable(sb);
HelpFormatter formatter =
HelpFormatter.builder().setHelpAppendable(serializer).get();
diff --git
a/src/test/java/org/apache/commons/cli/help/TextHelpAppendableTest.java
b/src/test/java/org/apache/commons/cli/help/TextHelpAppendableTest.java
index d29fcddb..9c58427d 100644
--- a/src/test/java/org/apache/commons/cli/help/TextHelpAppendableTest.java
+++ b/src/test/java/org/apache/commons/cli/help/TextHelpAppendableTest.java
@@ -37,13 +37,13 @@ import org.junit.jupiter.params.provider.MethodSource;
/**
* Tests {@link TextHelpAppendable}.
*/
-public final class TextHelpAppendableTest {
+final class TextHelpAppendableTest {
private StringBuilder sb;
private TextHelpAppendable underTest;
@BeforeEach
- public void setUp() {
+ void setUp() {
sb = new StringBuilder();
underTest = new TextHelpAppendable(sb);
}
diff --git a/src/test/java/org/apache/commons/cli/help/TextStyleTests.java
b/src/test/java/org/apache/commons/cli/help/TextStyleTest.java
similarity index 98%
rename from src/test/java/org/apache/commons/cli/help/TextStyleTests.java
rename to src/test/java/org/apache/commons/cli/help/TextStyleTest.java
index e745922a..b3e94627 100644
--- a/src/test/java/org/apache/commons/cli/help/TextStyleTests.java
+++ b/src/test/java/org/apache/commons/cli/help/TextStyleTest.java
@@ -28,9 +28,9 @@ import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
-public class TextStyleTests {
+class TextStyleTest {
- public static Stream<Arguments> padTestData() {
+ static Stream<Arguments> padTestData() {
final List<Arguments> lst = new ArrayList<>();
final TextStyle.Builder builder = TextStyle.builder();
builder.setIndent(5);