"com.pinterest.secor.io.impl.DelimitedTextFileReaderWriter");
mConfig = new SecorConfig(properties);
}
private void mockGzipFileReaderWriter() throws Exception {
GzipCodec codec = PowerMockito.mock(GzipCodec.class);
PowerMockito.whenNew(GzipCodec.class).withNoArguments()
.thenReturn(codec);
FileInputStream fileInputStream = Mockito.mock(FileInputStream.class);
FileOutputStream fileOutputStream = Mockito.mock(FileOutputStream.class);
PowerMockito.whenNew(FileInputStream.class).withAnyArguments()
.thenReturn(fileInputStream);
PowerMockito.whenNew(FileOutputStream.class).withAnyArguments()
.thenReturn(fileOutputStream);
CompressionInputStream inputStream = Mockito
.mock(CompressionInputStream.class);
CompressionOutputStream outputStream = Mockito
.mock(CompressionOutputStream.class);
Mockito.when(codec.createInputStream(Mockito.any(InputStream.class)))
.thenReturn(inputStream);
Mockito.when(codec.createOutputStream(Mockito.any(OutputStream.class)))
.thenReturn(outputStream);
}