hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishna Ramachandran (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-7031) Make DelegateToFileSystem constructor public to allow implementations from other packages for testing
Date Fri, 12 Nov 2010 22:08:14 GMT
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.


Mime
View raw message