public virtual void SetUp()
 {
     fsTarget        = fHdfs;
     fsTarget2       = fHdfs2;
     targetTestRoot  = fileSystemTestHelper.GetAbsoluteTestRootPath(fsTarget);
     targetTestRoot2 = fileSystemTestHelper.GetAbsoluteTestRootPath(fsTarget2);
     fsTarget.Delete(targetTestRoot, true);
     fsTarget2.Delete(targetTestRoot2, true);
     fsTarget.Mkdirs(targetTestRoot);
     fsTarget2.Mkdirs(targetTestRoot2);
     fsViewConf = ViewFileSystemTestSetup.CreateConfig();
     SetupMountPoints();
     fsView = FileSystem.Get(FsConstants.ViewfsUri, fsViewConf);
 }
 /// <exception cref="System.IO.IOException"/>
 internal virtual void InitializeTargetTestRoot()
 {
     targetTestRoot = fileSystemTestHelper.GetAbsoluteTestRootPath(fsTarget);
     // In case previous test was killed before cleanup
     fsTarget.Delete(targetTestRoot, true);
     fsTarget.Mkdirs(targetTestRoot);
 }
        public virtual void SetUp()
        {
            // create the test root on local_fs
            Configuration conf = new Configuration();

            fSysTarget           = FileSystem.GetLocal(conf);
            fileSystemTestHelper = new FileSystemTestHelper();
            chrootedTo           = fileSystemTestHelper.GetAbsoluteTestRootPath(fSysTarget);
            // In case previous test was killed before cleanup
            fSysTarget.Delete(chrootedTo, true);
            fSysTarget.Mkdirs(chrootedTo);
            // ChRoot to the root of the testDirectory
            fSys = new ChRootedFileSystem(chrootedTo.ToUri(), conf);
        }