diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-12-31 22:33:59 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-12-31 22:34:07 (GMT) |
commit | c3cad8e5f3d63098f5e01619ec8ea2e5c0734b49 (patch) | |
tree | e9b005e6a3761c737d34ef0da4f8f63df457fe61 /java/test | |
parent | fa6077332b36f3af0042561ccff29faef7f09e34 (diff) | |
download | hdf5-c3cad8e5f3d63098f5e01619ec8ea2e5c0734b49.zip hdf5-c3cad8e5f3d63098f5e01619ec8ea2e5c0734b49.tar.gz hdf5-c3cad8e5f3d63098f5e01619ec8ea2e5c0734b49.tar.bz2 |
HDFFV-10664 minimized dataset headers for java interface
Diffstat (limited to 'java/test')
-rw-r--r-- | java/test/TestH5Dplist.java | 17 | ||||
-rw-r--r-- | java/test/TestH5Fbasic.java | 14 | ||||
-rw-r--r-- | java/test/testfiles/JUnit-TestH5Dplist.txt | 3 | ||||
-rw-r--r-- | java/test/testfiles/JUnit-TestH5Fbasic.txt | 3 |
4 files changed, 35 insertions, 2 deletions
diff --git a/java/test/TestH5Dplist.java b/java/test/TestH5Dplist.java index 406a1d3..1d45a03 100644 --- a/java/test/TestH5Dplist.java +++ b/java/test/TestH5Dplist.java @@ -211,4 +211,21 @@ public class TestH5Dplist { assertTrue("testH5Dset_extent - H5.H5Dread: ", extend_dset_data[4][8] == 99); } + @Test + public void testH5P_dset_no_attrs_hint() { + boolean ret_val_id = false; + + _createPDataset(H5fid, H5dsid, "dset", HDF5Constants.H5P_DATASET_CREATE); + + try { + H5.H5Pset_dset_no_attrs_hint(H5dcpl_id, true); + ret_val_id = H5.H5Pget_dset_no_attrs_hint(H5dcpl_id); + assertTrue("H5P_dset_no_attrs_hint", ret_val_id); + } + catch (Throwable err) { + err.printStackTrace(); + fail("H5P_dset_no_attrs_hint: " + err); + } + } + } diff --git a/java/test/TestH5Fbasic.java b/java/test/TestH5Fbasic.java index a5afb6e..9196ea6 100644 --- a/java/test/TestH5Fbasic.java +++ b/java/test/TestH5Fbasic.java @@ -328,4 +328,18 @@ public class TestH5Fbasic { fail("H5.H5Freset_mdc_hit_rate_stats: " + err); } } + + @Test + public void testH5F_dset_no_attrs_hint() { + boolean ret_val_id = false; + try { + H5.H5Fset_dset_no_attrs_hint(H5fid, true); + ret_val_id = H5.H5Fget_dset_no_attrs_hint(H5fid); + assertTrue("H5F_dset_no_attrs_hint", ret_val_id); + } + catch (Throwable err) { + err.printStackTrace(); + fail("H5F_dset_no_attrs_hint: " + err); + } + } } diff --git a/java/test/testfiles/JUnit-TestH5Dplist.txt b/java/test/testfiles/JUnit-TestH5Dplist.txt index 1dfbed1..64e924a 100644 --- a/java/test/testfiles/JUnit-TestH5Dplist.txt +++ b/java/test/testfiles/JUnit-TestH5Dplist.txt @@ -1,7 +1,8 @@ JUnit version 4.11 +.testH5P_dset_no_attrs_hint .testH5Dset_extent Time: XXXX -OK (1 test) +OK (2 tests) diff --git a/java/test/testfiles/JUnit-TestH5Fbasic.txt b/java/test/testfiles/JUnit-TestH5Fbasic.txt index 2654624..05504de 100644 --- a/java/test/testfiles/JUnit-TestH5Fbasic.txt +++ b/java/test/testfiles/JUnit-TestH5Fbasic.txt @@ -2,6 +2,7 @@ JUnit version 4.11 .testH5Fget_mdc_size .testH5Fget_mdc_hit_rate .testH5Fis_hdf5 +.testH5F_dset_no_attrs_hint .testH5Fget_freespace .testH5Fclose .testH5Fget_filesize @@ -18,5 +19,5 @@ JUnit version 4.11 Time: XXXX -OK (16 tests) +OK (17 tests) |