diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-04-10 18:06:56 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-04-10 18:06:56 (GMT) |
commit | c8974b8a9e49aba96c93f9efa8977a5c57a35a07 (patch) | |
tree | d39b5466089be112fead20e08511e3a5c4d49d71 /java/test/TestH5Eparams.java | |
parent | df83d7813466fcb38b344361960681354a54af2a (diff) | |
download | hdf5-c8974b8a9e49aba96c93f9efa8977a5c57a35a07.zip hdf5-c8974b8a9e49aba96c93f9efa8977a5c57a35a07.tar.gz hdf5-c8974b8a9e49aba96c93f9efa8977a5c57a35a07.tar.bz2 |
Whitespace and test reclassify merge from develop
Diffstat (limited to 'java/test/TestH5Eparams.java')
-rw-r--r-- | java/test/TestH5Eparams.java | 71 |
1 files changed, 5 insertions, 66 deletions
diff --git a/java/test/TestH5Eparams.java b/java/test/TestH5Eparams.java index 63e2c62..0c55577 100644 --- a/java/test/TestH5Eparams.java +++ b/java/test/TestH5Eparams.java @@ -47,8 +47,7 @@ public class TestH5Eparams { hdf_java_classid = -1; try { - hdf_java_classid = H5.H5Eregister_class("HDF-Java-Error", - "hdf-java", "2.5"); + hdf_java_classid = H5.H5Eregister_class("HDF-Java-Error", "hdf-java", "2.5"); current_stackid = H5.H5Eget_current_stack(); } catch (Throwable err) { @@ -110,8 +109,7 @@ public class TestH5Eparams { @Test public void testH5Ecreate_msg_major() { try { - long err_id = H5.H5Ecreate_msg(hdf_java_classid, - HDF5Constants.H5E_MAJOR, "Error in Test"); + long err_id = H5.H5Ecreate_msg(hdf_java_classid, HDF5Constants.H5E_MAJOR, "Error in Test"); assertFalse("H5.H5Ecreate_msg_major: " + err_id, err_id < 0); H5.H5Eclose_msg(err_id); } @@ -124,8 +122,7 @@ public class TestH5Eparams { @Test public void testH5Ecreate_msg_minor() { try { - long err_id = H5.H5Ecreate_msg(hdf_java_classid, - HDF5Constants.H5E_MINOR, "Error in Test Function"); + long err_id = H5.H5Ecreate_msg(hdf_java_classid, HDF5Constants.H5E_MINOR, "Error in Test Function"); assertFalse("H5.H5Ecreate_msg_minor: " + err_id, err_id < 0); H5.H5Eclose_msg(err_id); } @@ -141,8 +138,7 @@ public class TestH5Eparams { long err_id = -1; String msg = null; try { - err_id = H5.H5Ecreate_msg(hdf_java_classid, - HDF5Constants.H5E_MAJOR, "Error in Test"); + err_id = H5.H5Ecreate_msg(hdf_java_classid, HDF5Constants.H5E_MAJOR, "Error in Test"); } catch (Throwable err) { err.printStackTrace(); @@ -158,8 +154,7 @@ public class TestH5Eparams { } assertNotNull("H5.H5Eget_msg: " + msg, msg); assertEquals("H5.H5Eget_msg: ", "Error in Test", msg); - assertEquals("H5.H5Eget_msg: ", HDF5Constants.H5E_MAJOR, - error_msg_type[0]); + assertEquals("H5.H5Eget_msg: ", HDF5Constants.H5E_MAJOR, error_msg_type[0]); try { H5.H5Eclose_msg(err_id); } @@ -170,62 +165,6 @@ public class TestH5Eparams { } @Test - public void testH5Eget_msg_major() { - - try { - H5.H5Fopen("test", 0, 1); - } - catch (HDF5LibraryException hdferr) { - int[] error_msg_type = { HDF5Constants.H5E_MAJOR }; - String msg = null; - try { - msg = H5.H5Eget_msg(hdferr.getMajorErrorNumber(), - error_msg_type); - } - catch (Throwable err) { - err.printStackTrace(); - fail("H5.H5Eget_msg: " + err); - } - assertNotNull("H5.H5Eget_msg: " + msg, msg); - assertEquals("H5.H5Eget_msg: ", "Invalid arguments to routine", - msg); - assertEquals("H5.H5Eget_msg: ", HDF5Constants.H5E_MAJOR, - error_msg_type[0]); - } - catch (Throwable err) { - err.printStackTrace(); - fail("H5.H5Eget_msg: " + err); - } - } - - @Test - public void testH5Eget_msg_minor() { - try { - H5.H5Fopen("test", 0, 1); - } - catch (HDF5LibraryException hdferr) { - int[] error_msg_type = { HDF5Constants.H5E_MINOR }; - String msg = null; - try { - msg = H5.H5Eget_msg(hdferr.getMinorErrorNumber(), - error_msg_type); - } - catch (Throwable err) { - err.printStackTrace(); - fail("H5.H5Eget_msg: " + err); - } - assertNotNull("H5.H5Eget_msg: " + msg, msg); - assertEquals("H5.H5Eget_msg: ", "Inappropriate type", msg); - assertEquals("H5.H5Eget_msg: ", HDF5Constants.H5E_MINOR, - error_msg_type[0]); - } - catch (Throwable err) { - err.printStackTrace(); - fail("H5.H5Eget_msg: " + err); - } - } - - @Test public void testH5Ecreate_stack() { long stk_id = -1; try { |