Skip to content

Commit ebc8523

Browse files
committed
Use JUnit 5 convention for class visibility
1 parent f97c172 commit ebc8523

37 files changed

+37
-37
lines changed

src/test/java/org/apache/commons/csv/CSVDuplicateHeaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Tests parsing of duplicate column names in a CSV header.
3535
* The test verifies that headers are consistently handled by CSVFormat and CSVParser.
3636
*/
37-
public class CSVDuplicateHeaderTest {
37+
class CSVDuplicateHeaderTest {
3838

3939
/**
4040
* Return test cases for duplicate header data for use in CSVFormat.

src/test/java/org/apache/commons/csv/CSVFileParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/**
4141
* Parse tests using test files
4242
*/
43-
public class CSVFileParserTest {
43+
class CSVFileParserTest {
4444

4545
private static final File BASE_DIR = new File("src/test/resources/org/apache/commons/csv/CSVFileParser");
4646

src/test/java/org/apache/commons/csv/CSVFormatPredefinedTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* Tests {@link CSVFormat.Predefined}.
2828
*/
29-
public class CSVFormatPredefinedTest {
29+
class CSVFormatPredefinedTest {
3030

3131
private void test(final CSVFormat format, final String enumName) {
3232
assertEquals(format, CSVFormat.Predefined.valueOf(enumName).getFormat());

src/test/java/org/apache/commons/csv/CSVFormatTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
/**
5555
* Tests {@link CSVFormat}.
5656
*/
57-
public class CSVFormatTest {
57+
class CSVFormatTest {
5858

5959
public enum EmptyEnum {
6060
// empty enum.

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
* The test are organized in three different sections: The 'setter/getter' section, the lexer section and finally the parser section. In case a test fails, you
7272
* should follow a top-down approach for fixing a potential bug (its likely that the parser itself fails if the lexer has problems...).
7373
*/
74-
public class CSVParserTest {
74+
class CSVParserTest {
7575

7676
private static final CSVFormat EXCEL_WITH_HEADER = CSVFormat.EXCEL.withHeader();
7777

src/test/java/org/apache/commons/csv/CSVPrinterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
/**
7676
* Tests {@link CSVPrinter}.
7777
*/
78-
public class CSVPrinterTest {
78+
class CSVPrinterTest {
7979

8080
private static final int TABLE_RECORD_COUNT = 2;
8181
private static final int TABLE_AND_HEADER_RECORD_COUNT = TABLE_RECORD_COUNT + 1;

src/test/java/org/apache/commons/csv/CSVRecordTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import org.junit.jupiter.api.BeforeEach;
4646
import org.junit.jupiter.api.Test;
4747

48-
public class CSVRecordTest {
48+
class CSVRecordTest {
4949

5050
private enum EnumFixture {
5151
UNKNOWN_COLUMN

src/test/java/org/apache/commons/csv/ExtendedBufferedReaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/**
3333
* Test {@link ExtendedBufferedReader}.
3434
*/
35-
public class ExtendedBufferedReaderTest {
35+
class ExtendedBufferedReaderTest {
3636

3737
static final String LF = "\n";
3838
static final String CR = "\r";

src/test/java/org/apache/commons/csv/JiraCsv196Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
import org.junit.jupiter.api.Test;
3030

31-
public class JiraCsv196Test {
31+
class JiraCsv196Test {
3232

3333
private Reader getTestInput(final String path) {
3434
return new InputStreamReader(ClassLoader.getSystemClassLoader().getResourceAsStream(path));

src/test/java/org/apache/commons/csv/JiraCsv318Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @see CSVPrinter
4040
*/
41-
public class JiraCsv318Test {
41+
class JiraCsv318Test {
4242

4343
private void checkOutput(final ByteArrayOutputStream baos) {
4444
checkOutput(baos.toString());

0 commit comments

Comments
 (0)