diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-10-05 14:15:28 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-10-05 14:15:28 (GMT) |
commit | b7991773cd4383053900eb6e09ea3eb35a0f7613 (patch) | |
tree | aa4a82a4fcc077d1479e77720737e5548853abcb /java | |
parent | cebf96dfac7e9dbe2061a5fd6252aef018d650da (diff) | |
download | hdf5-b7991773cd4383053900eb6e09ea3eb35a0f7613.zip hdf5-b7991773cd4383053900eb6e09ea3eb35a0f7613.tar.gz hdf5-b7991773cd4383053900eb6e09ea3eb35a0f7613.tar.bz2 |
Convert testEquals to test contains
Diffstat (limited to 'java')
-rw-r--r-- | java/test/TestH5E.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/test/TestH5E.java b/java/test/TestH5E.java index ad50d62..ec46095 100644 --- a/java/test/TestH5E.java +++ b/java/test/TestH5E.java @@ -94,7 +94,7 @@ public class TestH5E { fail("H5.H5Eget_msg(Throwable): " + err); } assertNotNull("H5.H5Eget_msg: " + msg, msg); - assertEquals("H5.H5Eget_msg: ", "Object atom", msg); + assertTrue("H5.H5Eget_msg: ", msg.contains("Object atom")); assertEquals("H5.H5Eget_msg: ", HDF5Constants.H5E_MAJOR, error_msg_type[0]); } catch (Throwable err) { @@ -121,7 +121,7 @@ public class TestH5E { fail("H5.H5Eget_msg: " + err); } assertNotNull("H5.H5Eget_msg: " + msg, msg); - assertEquals("H5.H5Eget_msg: ", "Unable to find atom information (already closed?)", msg); + assertTrue("H5.H5Eget_msg: ", msg.contains("Unable to find atom information (already closed?)")); assertEquals("H5.H5Eget_msg: ", HDF5Constants.H5E_MINOR, error_msg_type[0]); } catch (Throwable err) { |