I have class that gets GenericFile as input argument reads data and does some additional processing. I need to test it:
public class RealCardParser {
pu
Maybe this is a bad idea, but my first approach would have been creating an actual test-file rather than mocking the stream object.
One could argue that this would test the GenericFile
class rather than the getBufferedReader
method.
Maybe an acceptable way would be to return an actually existing test-file through the mocked GenericFile
for testing the getBufferedReader
?