java: add stripe unit granularity tests

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
Noah Watkins 2013-01-05 11:17:58 -08:00
parent ececcf57b8
commit e9efa33253
2 changed files with 13 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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();
}
}