Make DelegateToFileSystem constructor public to allow implementations from other packages for testing -----------------------------------------------------------------------------------------------------
Key: HADOOP-7031 URL: https://issues.apache.org/jira/browse/HADOOP-7031 Project: Hadoop Common Issue Type: Improvement Reporter: Krishna Ramachandran Mapreduce tests use ileSystem APIs to implement a TestFileSystem to simulate various error and failure conditions. This is no longer possible with the new FileContext APIs for example we would like to extend DelegateToFileSystem in unit testing framework public static class TestFileSystem extends DelegateToFileSystem { public TestFileSystem(Configuration conf) throws IOException, URISyntaxException { super(URI.create("faildel:///"), new FakeFileSystem(conf), conf, "faildel", false); } } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.