diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-09-19 15:52:43 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-09-19 15:52:43 (GMT) |
commit | 59f36c5cdef1899742feb1c06ee09886e2d0a220 (patch) | |
tree | ae6ba015a4011638aceaa9b3ae972a461b063df9 /java/test | |
parent | bd1be52990553fa700c0aad09a3adcd28012af2f (diff) | |
download | hdf5-59f36c5cdef1899742feb1c06ee09886e2d0a220.zip hdf5-59f36c5cdef1899742feb1c06ee09886e2d0a220.tar.gz hdf5-59f36c5cdef1899742feb1c06ee09886e2d0a220.tar.bz2 |
Remove extra constant
Diffstat (limited to 'java/test')
-rw-r--r-- | java/test/TestH5Edefault.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/test/TestH5Edefault.java b/java/test/TestH5Edefault.java index 8365027..b510936 100644 --- a/java/test/TestH5Edefault.java +++ b/java/test/TestH5Edefault.java @@ -31,7 +31,6 @@ public class TestH5Edefault { public static final int ERRSTACK_CNT = 3; public static final int ERRSTACK_MTY_CNT = 0; - public static final int ERRSTACK_POP_CNT = 2; @Before public void H5Eset_default_stack() { @@ -217,7 +216,7 @@ public class TestH5Edefault { err.printStackTrace(); fail("H5.H5Eget_current_stack: " + err); } - assertTrue("H5.H5Eget_current_stack: pop #:" + num_msg_default, num_msg_default == TestH5Edefault.ERRSTACK_POP_CNT); + assertTrue("H5.H5Eget_current_stack: pop #:" + num_msg_default, num_msg_default == TestH5Edefault.ERRSTACK_CNT - 1); //Verify the copy still has the correct number of messages try { @@ -347,7 +346,7 @@ public class TestH5Edefault { err.printStackTrace(); fail("H5.H5Eset_current_stack: " + err); } - assertTrue("H5.H5Eset_current_stack: pop #:" + num_msg, num_msg == TestH5Edefault.ERRSTACK_POP_CNT); + assertTrue("H5.H5Eset_current_stack: pop #:" + num_msg, num_msg == TestH5Edefault.ERRSTACK_CNT - 1); //Verify the copy still has the correct number of messages try { @@ -399,7 +398,7 @@ public class TestH5Edefault { err.printStackTrace(); fail("H5.H5Epop: " + err); } - assertTrue("H5.H5Epop after #:" + num_msg, num_msg == TestH5Edefault.ERRSTACK_POP_CNT); + assertTrue("H5.H5Epop after #:" + num_msg, num_msg == TestH5Edefault.ERRSTACK_CNT - 1); } @Test(expected = IllegalArgumentException.class) |