]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
java: add missing chmod unmounted test
authorNoah Watkins <noahwatkins@gmail.com>
Thu, 27 Dec 2012 21:14:34 +0000 (13:14 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Thu, 24 Jan 2013 19:33:37 +0000 (11:33 -0800)
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/java/test/com/ceph/fs/CephUnmountedTest.java

index 80147ac8e822df6b1181d768488b9b85351f8ba7..eb95e69fb03b62118455eb29746bffba6826b7fa 100644 (file)
@@ -156,4 +156,9 @@ public class CephUnmountedTest {
   public void test_fchmod() throws Exception {
     mount.fchmod(1, 0);
   }
+
+  @Test(expected=CephNotMountedException.class)
+  public void test_chmod() throws Exception {
+    mount.chmod("/foo", 0);
+  }
 }