Skip to content

Commit 0af0d17

Browse files
committed
Two TeeWriterTest methods test the wrong class
1 parent 21939d0 commit 0af0d17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/io/output/TeeWriterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class TeeWriterTest {
4242
public void testArrayIOExceptionOnAppendChar1() {
4343
final Writer badW = BrokenWriter.INSTANCE;
4444
final StringWriter goodW = mock(StringWriter.class);
45-
final ProxyCollectionWriter tw = new ProxyCollectionWriter(badW, goodW, null);
45+
final TeeWriter tw = new TeeWriter(badW, goodW, null);
4646
final char data = 'A';
4747

4848
final IOExceptionList e = assertThrows(IOExceptionList.class, () -> tw.append(data));
@@ -55,7 +55,7 @@ public void testArrayIOExceptionOnAppendChar1() {
5555
public void testArrayIOExceptionOnAppendChar2() {
5656
final Writer badW = BrokenWriter.INSTANCE;
5757
final StringWriter goodW = mock(StringWriter.class);
58-
final ProxyCollectionWriter tw = new ProxyCollectionWriter(goodW, badW, null);
58+
final TeeWriter tw = new TeeWriter(goodW, badW, null);
5959
final char data = 'A';
6060

6161
final IOExceptionList e = assertThrows(IOExceptionList.class, () -> tw.append(data));

0 commit comments

Comments
 (0)