diff options
| author | Allen Byrne <byrn@hdfgroup.org> | 2017-04-21 15:41:50 (GMT) |
|---|---|---|
| committer | Allen Byrne <byrn@hdfgroup.org> | 2017-04-21 15:41:50 (GMT) |
| commit | aeb1500897862ab8e0c500bd0a6986d229c4e5f2 (patch) | |
| tree | 422757fe6b1a946a69c3d47b1a6ba4c8fc7dafba /java/test/TestH5PL.java | |
| parent | ae1144f8826dcecc68ec923bb7261f2a8153735c (diff) | |
| parent | 3968c5c3bf16dc23a0a2ff1fa8d6c64dd2f8d32a (diff) | |
| download | hdf5-aeb1500897862ab8e0c500bd0a6986d229c4e5f2.zip hdf5-aeb1500897862ab8e0c500bd0a6986d229c4e5f2.tar.gz hdf5-aeb1500897862ab8e0c500bd0a6986d229c4e5f2.tar.bz2 | |
Merge remote-tracking branch 'origin/develop' into
bugfix/HDFFV-9655-plugin-path-relative
Diffstat (limited to 'java/test/TestH5PL.java')
| -rw-r--r-- | java/test/TestH5PL.java | 30 |
1 files changed, 30 insertions, 0 deletions
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; |
