diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-03-24 17:21:04 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-03-24 17:21:04 (GMT) |
commit | 261f8c83611db7b19f3a697720926d825b375a1d (patch) | |
tree | 890d34d919fd26265cbdb383a7e47744805940c0 /java/test | |
parent | d9ab44fe466197b8dd89aa4dcf4dbdd00ea4b8c2 (diff) | |
download | hdf5-261f8c83611db7b19f3a697720926d825b375a1d.zip hdf5-261f8c83611db7b19f3a697720926d825b375a1d.tar.gz hdf5-261f8c83611db7b19f3a697720926d825b375a1d.tar.bz2 |
[svn-r29560] Remove list and check of flags, defer to library function for checking, which will return an error. That error then produces a HDF5FunctionArgument exception instead of IllegalArgument exception.
Diffstat (limited to 'java/test')
-rw-r--r-- | java/test/TestH5P.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/test/TestH5P.java b/java/test/TestH5P.java index 2a0fc34..b8a4376 100644 --- a/java/test/TestH5P.java +++ b/java/test/TestH5P.java @@ -25,6 +25,7 @@ import java.io.File; import hdf.hdf5lib.H5; import hdf.hdf5lib.HDF5Constants; import hdf.hdf5lib.exceptions.HDF5Exception; +import hdf.hdf5lib.exceptions.HDF5FunctionArgumentException; import hdf.hdf5lib.exceptions.HDF5LibraryException; import org.junit.After; @@ -496,12 +497,12 @@ public class TestH5P { assertEquals(HDF5Constants.H5F_ACC_RDWR, get_flags); } - @Test(expected = IllegalArgumentException.class) + @Test(expected = HDF5FunctionArgumentException.class) public void testH5Pset_elink_acc_flags_InvalidFlag1() throws Throwable { H5.H5Pset_elink_acc_flags(lapl_id, HDF5Constants.H5F_ACC_TRUNC); } - @Test(expected = IllegalArgumentException.class) + @Test(expected = HDF5FunctionArgumentException.class) public void testH5Pset_elink_acc_flags_InvalidFlag2() throws Throwable { H5.H5Pset_elink_acc_flags(lapl_id, -1); } |