Пример #1
0
 /// <exception cref="System.IO.IOException"/>
 public virtual void TestReadCorrectlyRestrictedWithSecurity()
 {
     SecureIOUtils.OpenForRead(testFilePathIs, realOwner, realGroup).Close();
     SecureIOUtils.OpenFSDataInputStream(testFilePathFadis, realOwner, realGroup).Close
         ();
     SecureIOUtils.OpenForRandomRead(testFilePathRaf, "r", realOwner, realGroup).Close
         ();
 }
Пример #2
0
 /// <exception cref="System.IO.IOException"/>
 public virtual void TestReadUnrestricted()
 {
     SecureIOUtils.OpenForRead(testFilePathIs, null, null).Close();
     SecureIOUtils.OpenFSDataInputStream(testFilePathFadis, null, null).Close();
     SecureIOUtils.OpenForRandomRead(testFilePathRaf, "r", null, null).Close();
 }