@Test
public void testSchemeCompression() throws Exception
{
Tap source = new DirTap( new TextLine(), InputData.inputPath, "glob:**/*.txt" );
DirTap compressed = new DirTap( new TextLine( Compressors.GZIP ), getOutputPath( "compressed" ), SinkMode.REPLACE );
DirTap sink = new DirTap( new TextLine(), getOutputPath( "uncompressed" ), SinkMode.REPLACE );
Flow first = getPlatform().getFlowConnector().connect( "first", source, compressed, new Pipe( "copy" ) );
first.complete();
Flow second = getPlatform().getFlowConnector().connect( "second", compressed, sink, new Pipe( "copy" ) );
second.complete();
List<Tuple> list = getSinkAsList( second );
assertEquals( 674, list.size() );
}
}