Skip to content

Commit cd272c3

Browse files
committed
Use JUnit 5 convention for class visibility
1 parent 0a5b754 commit cd272c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+41
-41
lines changed

src/test/java/org/apache/commons/cli/AlreadySelectedExceptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2626
/**
2727
* Tests {@link AlreadySelectedException}.
2828
*/
29-
public class AlreadySelectedExceptionTest {
29+
class AlreadySelectedExceptionTest {
3030

3131
@Test
3232
void testConstructor() {

src/test/java/org/apache/commons/cli/ApplicationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
3939
* </p>
4040
*/
4141
@SuppressWarnings("deprecation") // tests some deprecated classes
42-
public class ApplicationTest {
42+
class ApplicationTest {
4343
/**
4444
* Ant test
4545
*/

src/test/java/org/apache/commons/cli/ArgumentIsOptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2525
import org.junit.jupiter.api.Test;
2626

2727
@SuppressWarnings("deprecation") // tests some deprecated classes
28-
public class ArgumentIsOptionTest {
28+
class ArgumentIsOptionTest {
2929

3030
private Options options;
3131
private CommandLineParser parser;

src/test/java/org/apache/commons/cli/BasicParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2525
* TODO Needs a rework using JUnit parameterized tests.
2626
*/
2727
@SuppressWarnings("deprecation") // tests some deprecated classes
28-
public class BasicParserTest extends AbstractParserTestCase {
28+
class BasicParserTest extends AbstractParserTestCase {
2929
@Override
3030
@BeforeEach
3131
public void setUp() {

src/test/java/org/apache/commons/cli/CommandLineTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
3737
import org.junit.jupiter.params.provider.Arguments;
3838
import org.junit.jupiter.params.provider.MethodSource;
3939

40-
public class CommandLineTest {
40+
class CommandLineTest {
4141

4242
private enum Count { ONE, TWO, THREE }
4343

src/test/java/org/apache/commons/cli/DefaultParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
3535
import org.junit.jupiter.params.provider.ArgumentsProvider;
3636
import org.junit.jupiter.params.provider.ArgumentsSource;
3737

38-
public class DefaultParserTest extends AbstractParserTestCase {
38+
class DefaultParserTest extends AbstractParserTestCase {
3939

4040
static class ExternalArgumentsProvider implements ArgumentsProvider {
4141

src/test/java/org/apache/commons/cli/DeprecatedAttributesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2121

2222
import org.junit.jupiter.api.Test;
2323

24-
public class DeprecatedAttributesTest {
24+
class DeprecatedAttributesTest {
2525

2626
@Test
2727
void testBuilderNonDefaults() {

src/test/java/org/apache/commons/cli/DisablePartialMatchingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2222

2323
import org.junit.jupiter.api.Test;
2424

25-
public class DisablePartialMatchingTest {
25+
class DisablePartialMatchingTest {
2626
@Test
2727
void testDisablePartialMatching() throws Exception {
2828
final CommandLineParser parser = new DefaultParser(false);

src/test/java/org/apache/commons/cli/GnuParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2525
* TODO Needs a rework using JUnit parameterized tests.
2626
*/
2727
@SuppressWarnings("deprecation") // tests some deprecated classes
28-
public class GnuParserTest extends AbstractParserTestCase {
28+
class GnuParserTest extends AbstractParserTestCase {
2929
@Override
3030
@BeforeEach
3131
public void setUp() {

src/test/java/org/apache/commons/cli/HelpFormatterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
4343
/**
4444
* Test case for the HelpFormatter class.
4545
*/
46-
public class HelpFormatterTest {
46+
class HelpFormatterTest {
4747
private static final String EOL = System.lineSeparator();
4848

4949
static Stream<Arguments> deprecatedOptionsProvider() {

0 commit comments

Comments
 (0)