summaryrefslogtreecommitdiffstats
path: root/java/test/TestH5Fbasic.java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-12-17 17:16:59 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-12-17 17:16:59 (GMT)
commit8dbadb41a3b23d6d74effee7bef0302fd81b80a6 (patch)
treec15301ff6866509cc6a08a4b52f8599c95d96bf0 /java/test/TestH5Fbasic.java
parent1e9efded02415d56bc4cccc5119001fedfb7168f (diff)
downloadhdf5-8dbadb41a3b23d6d74effee7bef0302fd81b80a6.zip
hdf5-8dbadb41a3b23d6d74effee7bef0302fd81b80a6.tar.gz
hdf5-8dbadb41a3b23d6d74effee7bef0302fd81b80a6.tar.bz2
HDFFV-10663 add new function H5Fis_accessible
Diffstat (limited to 'java/test/TestH5Fbasic.java')
-rw-r--r--java/test/TestH5Fbasic.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/test/TestH5Fbasic.java b/java/test/TestH5Fbasic.java
index 11d6644..a5afb6e 100644
--- a/java/test/TestH5Fbasic.java
+++ b/java/test/TestH5Fbasic.java
@@ -81,6 +81,19 @@ public class TestH5Fbasic {
assertTrue(isH5 == true);
}
+ @Test
+ public void testH5Fis_accessible() {
+ boolean isH5 = false;
+
+ try {
+ isH5 = H5.H5Fis_accessible(H5_FILE, HDF5Constants.H5P_DEFAULT);
+ }
+ catch (Throwable err) {
+ fail("H5.H5Fis_accessible failed on " + H5_FILE + ": " + err);
+ }
+ assertTrue(isH5 == true);
+ }
+
@Test(expected = HDF5LibraryException.class)
public void testH5Fcreate_EXCL() throws Throwable {
H5.H5Fcreate(H5_FILE, HDF5Constants.H5F_ACC_EXCL,