A
Aryeh.Friedman
When I try to subclass FileReader:
package java.io; // this is true even if I put this in an other
package and import java.io.*
public class MockFileReader extends FileReader
{
public MockFileReader(String file)
{
}
}
I get:
MockFileReader.java:14: cannot find symbol
symbol : constructor FileReader()
location: class java.io.FileReader
{
Is there anyway to get around this... the context is in unit testing I
do want to use real files (for reasons that should be clear to most
unit test designers) but need to pass something that is a FileReader
(the formal param is a FileReader)
--Aryeh
package java.io; // this is true even if I put this in an other
package and import java.io.*
public class MockFileReader extends FileReader
{
public MockFileReader(String file)
{
}
}
I get:
MockFileReader.java:14: cannot find symbol
symbol : constructor FileReader()
location: class java.io.FileReader
{
Is there anyway to get around this... the context is in unit testing I
do want to use real files (for reasons that should be clear to most
unit test designers) but need to pass something that is a FileReader
(the formal param is a FileReader)
--Aryeh