Re-write of Java JNI error handling

This commit is contained in:
Jordan Henderson
2019-02-11 10:58:58 -06:00
parent 4300ca6234
commit cc6a61215e
56 changed files with 17976 additions and 15906 deletions

View File

@@ -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