System.exit(-1);
}
BixoPlatform platform = new BixoPlatform(RunFakeFetchPipe.class, Platform.Local);
BasePath inputPath = platform.makePath(path.getFile());
Tap in = platform.makeTap(platform.makeTextScheme(), inputPath);
Pipe importPipe = new Each("url importer", new Fields("line"), new CreateUrlFunction());
BaseScoreGenerator scorer = new FixedScoreGenerator();
BaseFetcher fetcher = new FakeHttpFetcher(true, 10);
FetchPipe fetchPipe = new FetchPipe(importPipe, scorer, fetcher, 1);
// Create the output, which is a dual file sink tap.
String output = "build/test/RunFakeFetchPipe/dual";
BasePath outputPath = platform.makePath(output);
BasePath statusPath = platform.makePath(outputPath, "status");
Tap status = platform.makeTap(platform.makeTextScheme(), statusPath, SinkMode.REPLACE);
BasePath contentPath = platform.makePath(outputPath, "content");
Tap content = platform.makeTap(platform.makeTextScheme(), contentPath, SinkMode.REPLACE);
// Finally we can run it.
FlowConnector flowConnector = platform.makeFlowConnector();
Flow flow = flowConnector.connect(in, FetchPipe.makeSinkMap(status, content), fetchPipe);