summaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2013-01-05 11:17:58 -0800
committerNoah Watkins <noahwatkins@gmail.com>2013-01-05 11:17:58 -0800
commite9efa33253c479d158d0747e1eba5ce0f0819074 (patch)
treee0a37e360dc297b3551dc2e62d8d6cfbc60781a2 /src/java
parentececcf57b88bc737e09aefb7b6e2138d69e5faaa (diff)
downloadceph-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.java8
-rw-r--r--src/java/test/com/ceph/fs/CephUnmountedTest.java5
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();
+ }
}