Re-write of Java JNI error handling
This commit is contained in:
@@ -177,6 +177,23 @@ public class TestH5 {
|
||||
for (int i = 0; i < 2; i++)
|
||||
assertFalse(libversion[i] == 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link hdf.hdf5lib.H5#H5get_libversion(int[])}
|
||||
* to ensure a null libversion parameter causes the function to
|
||||
* fail.
|
||||
*/
|
||||
@Test
|
||||
public void testH5get_libversion_null_param() {
|
||||
try {
|
||||
H5.H5get_libversion(null);
|
||||
}
|
||||
catch (Throwable err) {
|
||||
return;
|
||||
}
|
||||
|
||||
fail("H5.H5get_libversion: succeeded with a null libversion parameter!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for
|
||||
|
||||
Reference in New Issue
Block a user