diff options
Diffstat (limited to 'java/test')
-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) { |