diff options
author | Noah Watkins <noahwatkins@gmail.com> | 2013-01-05 11:17:58 -0800 |
---|---|---|
committer | Noah Watkins <noahwatkins@gmail.com> | 2013-01-05 11:17:58 -0800 |
commit | e9efa33253c479d158d0747e1eba5ce0f0819074 (patch) | |
tree | e0a37e360dc297b3551dc2e62d8d6cfbc60781a2 /src/java | |
parent | ececcf57b88bc737e09aefb7b6e2138d69e5faaa (diff) | |
download | ceph-e9efa33253c479d158d0747e1eba5ce0f0819074.tar.gz |
java: add stripe unit granularity tests
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/test/com/ceph/fs/CephMountTest.java | 8 | ||||
-rw-r--r-- | src/java/test/com/ceph/fs/CephUnmountedTest.java | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/java/test/com/ceph/fs/CephMountTest.java b/src/java/test/com/ceph/fs/CephMountTest.java index 87d54b2f4ea..0ed74ec4b98 100644 --- a/src/java/test/com/ceph/fs/CephMountTest.java +++ b/src/java/test/com/ceph/fs/CephMountTest.java @@ -826,4 +826,12 @@ public class CephMountTest { mount.unlink(path); } + /* + * stripe unit granularity + */ + + @Test + public void test_get_stripe_unit_gran() throws Exception { + assertTrue(mount.get_stripe_unit_granularity() > 0); + } } diff --git a/src/java/test/com/ceph/fs/CephUnmountedTest.java b/src/java/test/com/ceph/fs/CephUnmountedTest.java index d4466530e77..7169bbf6f6e 100644 --- a/src/java/test/com/ceph/fs/CephUnmountedTest.java +++ b/src/java/test/com/ceph/fs/CephUnmountedTest.java @@ -130,4 +130,9 @@ public class CephUnmountedTest { public void test_get_repl() throws Exception { mount.get_file_replication(0); } + + @Test(expected=CephNotMountedException.class) + public void test_get_stripe_unit_gran() throws Exception { + mount.get_stripe_unit_granularity(); + } } |