@Test void defaultsToVersion1Reader() throws IOException { String firstLine = "null"; FileUtils.writeStringToFile(balanceFile, firstLine, "utf-8"); when(readerImplV2.isFirstLineFromFileVersion(firstLine)).thenReturn(false); compositeBalanceFileReader.read(balanceFile); verify(readerImplV1, times(1)).read(balanceFile); verify(readerImplV2, times(0)).read(balanceFile); }
@Override public Stream<AccountBalance> read(File file) { return getReader(file).read(file); }
CompositeBalanceFileReader implements BalanceFileReader { @Override public Stream<AccountBalance> read(File file) { return getReader(file).read(file); } }
CompositeBalanceFileReader implements BalanceFileReader { @Override public Stream<AccountBalance> read(File file) { return getReader(file).read(file); }  }
CompositeBalanceFileReader implements BalanceFileReader { @Override public Stream<AccountBalance> read(File file) { return getReader(file).read(file); }  @Override Stream<AccountBalance> read(File file); }
CompositeBalanceFileReader implements BalanceFileReader { @Override public Stream<AccountBalance> read(File file) { return getReader(file).read(file); }  @Override Stream<AccountBalance> read(File file);  }