Skip to content

Commit 456f72a

Browse files
committed
Javadoc.
Sort members.
1 parent 8f8e48d commit 456f72a

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

src/test/java/org/apache/commons/io/input/ProxyReaderTest.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,11 @@
2323
import org.junit.jupiter.api.Test;
2424

2525
/**
26-
* Test {@link ProxyReader}.
26+
* Tests {@link ProxyReader}.
2727
*/
2828
public class ProxyReaderTest {
2929

30-
@Test
31-
public void testNullCharArray() throws Exception {
32-
try (final ProxyReader proxy = new ProxyReaderImpl(new CustomNullReader(0))) {
33-
proxy.read((char[]) null);
34-
proxy.read(null, 0, 0);
35-
}
36-
}
37-
38-
@Test
39-
public void testNullCharBuffer() throws Exception {
40-
try (final ProxyReader proxy = new ProxyReaderImpl(new CustomNullReader(0))) {
41-
proxy.read((CharBuffer) null);
42-
}
43-
}
44-
45-
/** ProxyReader implementation */
46-
private static class ProxyReaderImpl extends ProxyReader {
47-
ProxyReaderImpl(final Reader proxy) {
48-
super(proxy);
49-
}
50-
}
51-
52-
/** Custom NullReader implementation */
30+
/** Custom NullReader implementation. */
5331
private static class CustomNullReader extends NullReader {
5432
CustomNullReader(final int len) {
5533
super(len);
@@ -65,4 +43,26 @@ public int read(final CharBuffer target) throws IOException {
6543
return target == null ? 0 : super.read(target);
6644
}
6745
}
46+
47+
/** ProxyReader implementation. */
48+
private static class ProxyReaderImpl extends ProxyReader {
49+
ProxyReaderImpl(final Reader proxy) {
50+
super(proxy);
51+
}
52+
}
53+
54+
@Test
55+
public void testNullCharArray() throws Exception {
56+
try (final ProxyReader proxy = new ProxyReaderImpl(new CustomNullReader(0))) {
57+
proxy.read((char[]) null);
58+
proxy.read(null, 0, 0);
59+
}
60+
}
61+
62+
@Test
63+
public void testNullCharBuffer() throws Exception {
64+
try (final ProxyReader proxy = new ProxyReaderImpl(new CustomNullReader(0))) {
65+
proxy.read((CharBuffer) null);
66+
}
67+
}
6868
}

0 commit comments

Comments
 (0)