diff options
| author | Allen Byrne <byrn@hdfgroup.org> | 2017-04-06 16:28:33 (GMT) |
|---|---|---|
| committer | Allen Byrne <byrn@hdfgroup.org> | 2017-04-06 16:28:33 (GMT) |
| commit | 5806dd271154b072c2eae92d06bfa01215ffbf27 (patch) | |
| tree | 14fa69cf41b1822ab12587d4609f2dd17f0589db /java/test | |
| parent | d6ea49f5cbcaa852cd0caf34278ec61108667bc3 (diff) | |
| parent | a4038aed6e895b9d1e686073c135f8aaacc9adab (diff) | |
| download | hdf5-5806dd271154b072c2eae92d06bfa01215ffbf27.zip hdf5-5806dd271154b072c2eae92d06bfa01215ffbf27.tar.gz hdf5-5806dd271154b072c2eae92d06bfa01215ffbf27.tar.bz2 | |
Merge pull request #378 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_10 to hdf5_1_10
* commit 'a4038aed6e895b9d1e686073c135f8aaacc9adab': (21 commits)
Fix typo deletion
HDFFV-10143 Update new feature section.
HDFFV-10143 clean up format and function return
HDFFV-10143 Add plugin APIs to Java interface
Update with checks for index bounds
HDFFV-10143 fix use before set
HDFFV-10143 surround will fail with try block
HDFFV-10143 typo cleanup
HDFFV-10143 typo removed
Fix code error and use H5PL_MAX_PATH_NUM in test
HDFFV-10143 Cleanup due to comments
HDFFV-10143 remove debugging output
HDFFV-10143 change h5PLget to use buffer like H5Iget_name
HDFFV-10143 change put to replace and add const
HDFFV-10143 Use Windows A version of ExpandEnvironmentStrings
Remove redundant code
HDFFV-10143 Fix initial issues from review
HDFFV-10143 add APIs to manipulate plugin path table
Remove duplicated paths, add new paths
HDFFV-10143 add APIs to manipulate plugin path table
...
Diffstat (limited to 'java/test')
| -rw-r--r-- | java/test/JUnit-interface.txt | 3 | ||||
| -rw-r--r-- | java/test/TestH5PL.java | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/java/test/JUnit-interface.txt b/java/test/JUnit-interface.txt index cae8cef..ab2f3b1 100644 --- a/java/test/JUnit-interface.txt +++ b/java/test/JUnit-interface.txt @@ -633,13 +633,14 @@ JUnit version 4.11 .testH5Ocomment_clear .testH5Ocopy_cur_not_exists .TestH5PLplugins +.TestH5PLpaths .testH5Zfilter_avail .testH5Zunregister_predefined .testH5Zget_filter_info Time: XXXX -OK (637 tests) +OK (638 tests) HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs): #000: (file name) line (number) in H5Fopen(): can't set access and transfer property lists diff --git a/java/test/TestH5PL.java b/java/test/TestH5PL.java index 9f1876c..759db5f 100644 --- a/java/test/TestH5PL.java +++ b/java/test/TestH5PL.java @@ -69,6 +69,36 @@ public class TestH5PL { } } + @Test + public void TestH5PLpaths() { + try { + int original_entries = H5.H5PLsize(); + H5.H5PLappend("path_one"); + int plugin_entries = H5.H5PLsize(); + assertTrue("H5.H5PLsize: "+plugin_entries, (original_entries+1) == plugin_entries); + H5.H5PLprepend("path_two"); + plugin_entries = H5.H5PLsize(); + assertTrue("H5.H5PLsize: "+plugin_entries, (original_entries+2) == plugin_entries); + H5.H5PLinsert("path_three", original_entries); + plugin_entries = H5.H5PLsize(); + assertTrue("H5.H5PLsize: "+plugin_entries, (original_entries+3) == plugin_entries); + String first_path = H5.H5PLget(original_entries); + assertTrue("First path was : "+first_path + " ",first_path.compareToIgnoreCase("path_three")==0); + H5.H5PLreplace("path_four", original_entries); + first_path = H5.H5PLget(original_entries); + assertTrue("First path changed to : "+first_path + " ",first_path.compareToIgnoreCase("path_four")==0); + H5.H5PLremove(original_entries); + first_path = H5.H5PLget(original_entries); + assertTrue("First path now : "+first_path + " ",first_path.compareToIgnoreCase("path_two")==0); + plugin_entries = H5.H5PLsize(); + assertTrue("H5.H5PLsize: "+plugin_entries, (original_entries+2) == plugin_entries); + } + catch (Throwable err) { + err.printStackTrace(); + fail("TestH5PLpaths " + err); + } + } + @Ignore public void TestH5PLdlopen() { long file_id = -1; |
