Skip to content

Commit d7e3389

Browse files
committed
Better ivar name.
1 parent e8f50ac commit d7e3389

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ public class BrokenReaderTest {
3434

3535
private IOException exception;
3636

37-
private Reader reader;
37+
private Reader brokenReader;
3838

3939
@BeforeEach
4040
public void setUp() {
4141
exception = new IOException("test exception");
42-
reader = new BrokenReader(exception);
42+
brokenReader = new BrokenReader(exception);
4343
}
4444

4545
@Test
4646
public void testClose() {
4747
try {
48-
reader.close();
48+
brokenReader.close();
4949
fail("Expected exception not thrown.");
5050
} catch (final IOException e) {
5151
assertEquals(exception, e);
@@ -60,7 +60,7 @@ public void testInstance() {
6060
@Test
6161
public void testMark() {
6262
try {
63-
reader.mark(1);
63+
brokenReader.mark(1);
6464
fail("Expected exception not thrown.");
6565
} catch (final IOException e) {
6666
assertEquals(exception, e);
@@ -70,21 +70,21 @@ public void testMark() {
7070
@Test
7171
public void testRead() {
7272
try {
73-
reader.read();
73+
brokenReader.read();
7474
fail("Expected exception not thrown.");
7575
} catch (final IOException e) {
7676
assertEquals(exception, e);
7777
}
7878

7979
try {
80-
reader.read(new char[1]);
80+
brokenReader.read(new char[1]);
8181
fail("Expected exception not thrown.");
8282
} catch (final IOException e) {
8383
assertEquals(exception, e);
8484
}
8585

8686
try {
87-
reader.read(new char[1], 0, 1);
87+
brokenReader.read(new char[1], 0, 1);
8888
fail("Expected exception not thrown.");
8989
} catch (final IOException e) {
9090
assertEquals(exception, e);
@@ -94,7 +94,7 @@ public void testRead() {
9494
@Test
9595
public void testReady() {
9696
try {
97-
reader.ready();
97+
brokenReader.ready();
9898
fail("Expected exception not thrown.");
9999
} catch (final IOException e) {
100100
assertEquals(exception, e);
@@ -104,7 +104,7 @@ public void testReady() {
104104
@Test
105105
public void testReset() {
106106
try {
107-
reader.reset();
107+
brokenReader.reset();
108108
fail("Expected exception not thrown.");
109109
} catch (final IOException e) {
110110
assertEquals(exception, e);
@@ -114,7 +114,7 @@ public void testReset() {
114114
@Test
115115
public void testSkip() {
116116
try {
117-
reader.skip(1);
117+
brokenReader.skip(1);
118118
fail("Expected exception not thrown.");
119119
} catch (final IOException e) {
120120
assertEquals(exception, e);

0 commit comments

Comments
 (0)