diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-12-12 19:10:46 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-12-12 19:10:46 (GMT) |
commit | 690cb84f10da7d72fcf87b07d346a26e6fefd1d0 (patch) | |
tree | 444a5c330330601a3feed983e194ea3c5351901e /java/test/TestH5Pfapl.java | |
parent | 95e96246a67593776da863c88837c6cb0b7d0058 (diff) | |
download | hdf5-690cb84f10da7d72fcf87b07d346a26e6fefd1d0.zip hdf5-690cb84f10da7d72fcf87b07d346a26e6fefd1d0.tar.gz hdf5-690cb84f10da7d72fcf87b07d346a26e6fefd1d0.tar.bz2 |
Added java wrappers and tests
Diffstat (limited to 'java/test/TestH5Pfapl.java')
-rw-r--r-- | java/test/TestH5Pfapl.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/java/test/TestH5Pfapl.java b/java/test/TestH5Pfapl.java index d4a2231..f6783d4 100644 --- a/java/test/TestH5Pfapl.java +++ b/java/test/TestH5Pfapl.java @@ -1376,4 +1376,45 @@ public class TestH5Pfapl { deleteH5file(); _deleteLogFile(); } + + @Test + public void testH5P_evict_on_close() { + boolean ret_val_id = false; + try { + H5.H5Pset_evict_on_close(fapl_id, true); + ret_val_id = H5.H5Pget_evict_on_close(fapl_id); + assertTrue("H5P_evict_on_close", ret_val_id); + } + catch (Throwable err) { + err.printStackTrace(); + fail("H5P_evict_on_close: " + err); + } + } + + @Test + public void testH5P_vds_file_cache_size() { + int vds_size = 0; + try { + try { + vds_size = H5.H5Pget_vds_file_cache_size(fapl_id); + assertTrue("H5P_vds_file_cache_size default", vds_size == 0); + } + catch (UnsupportedOperationException err) { + System.out.println(err.getMessage()); + } + try { + vds_size = 8; + H5.H5Pset_vds_file_cache_size(fapl_id, vds_size); + vds_size = H5.H5Pget_vds_file_cache_size(fapl_id); + assertTrue("H5P_vds_file_cache_size 8", vds_size == 8); + } + catch (UnsupportedOperationException err) { + System.out.println(err.getMessage()); + } + } + catch (Throwable err) { + err.printStackTrace(); + fail("H5P_vds_file_cache_size: " + err); + } + } } |