summaryrefslogtreecommitdiffstats
path: root/java/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-03-16 16:58:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-03-16 16:58:03 (GMT)
commit1f5286ddf2cdf6162bfb9baab18e067658fbfabf (patch)
tree353049ba0d99c943eb917a640a1a2f9a39c68ada /java/test
parent0647698684f004c518d2807105db5fcaf2c22e7c (diff)
downloadhdf5-1f5286ddf2cdf6162bfb9baab18e067658fbfabf.zip
hdf5-1f5286ddf2cdf6162bfb9baab18e067658fbfabf.tar.gz
hdf5-1f5286ddf2cdf6162bfb9baab18e067658fbfabf.tar.bz2
[svn-r29447] Correct signature of H5Pexist to return boolean
Diffstat (limited to 'java/test')
-rw-r--r--java/test/TestH5Plist.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/java/test/TestH5Plist.java b/java/test/TestH5Plist.java
index e87909e..024237a 100644
--- a/java/test/TestH5Plist.java
+++ b/java/test/TestH5Plist.java
@@ -284,7 +284,7 @@ public class TestH5Plist {
// Test basic generic property list code. Tests adding properties to generic classes.
@Test
public void testH5P_genprop_basic_class_prop() {
- int status = -1;
+ boolean status = false;
long size = -1; // Generic Property size
long nprops = -1; // Generic Property class number
@@ -306,7 +306,7 @@ public class TestH5Plist {
err.printStackTrace();
fail("H5Pexist plist_class_id: " + err);
}
- assertTrue("H5Pexist plist_class_id "+PROP1_NAME, status == 0);
+ assertFalse("H5Pexist plist_class_id "+PROP1_NAME, status);
// Insert first property into class (with no callbacks)
try {
@@ -337,7 +337,7 @@ public class TestH5Plist {
err.printStackTrace();
fail("H5Pexist plist_class_id: " + err);
}
- assertTrue("H5Pexist plist_class_id "+PROP1_NAME, status > 0);
+ assertTrue("H5Pexist plist_class_id "+PROP1_NAME, status);
// Check the size of the first property
try {
@@ -388,7 +388,7 @@ public class TestH5Plist {
err.printStackTrace();
fail("H5Pexist plist_class_id: " + err);
}
- assertTrue("H5Pexist plist_class_id "+PROP2_NAME, status > 0);
+ assertTrue("H5Pexist plist_class_id "+PROP2_NAME, status);
// Check the size of the second property
try {
@@ -429,7 +429,7 @@ public class TestH5Plist {
err.printStackTrace();
fail("H5Pexist plist_class_id: " + err);
}
- assertTrue("H5Pexist plist_class_id "+PROP3_NAME, status > 0);
+ assertTrue("H5Pexist plist_class_id "+PROP3_NAME, status);
// Check the size of the third property
try {
@@ -635,7 +635,7 @@ public class TestH5Plist {
// removing properties from them.
@Test
public void testH5P_genprop_basic_list_prop() {
- int status = -1;
+ boolean status = false;
long lid1 = -1; // Generic Property list ID
long nprops = -1; // Number of properties in class
@@ -725,7 +725,7 @@ public class TestH5Plist {
err.printStackTrace();
fail("H5Pexist plist_class_id: " + err);
}
- assertTrue("H5Pexist lid1 "+PROP1_NAME, status > 0);
+ assertTrue("H5Pexist lid1 "+PROP1_NAME, status);
try {
status = H5.H5Pexist(lid1, PROP2_NAME);
}
@@ -733,7 +733,7 @@ public class TestH5Plist {
err.printStackTrace();
fail("H5Pexist plist_class_id: " + err);
}
- assertTrue("H5Pexist lid1 "+PROP2_NAME, status > 0);
+ assertTrue("H5Pexist lid1 "+PROP2_NAME, status);
try {
status = H5.H5Pexist(lid1, PROP3_NAME);
}
@@ -741,7 +741,7 @@ public class TestH5Plist {
err.printStackTrace();
fail("H5Pexist plist_class_id: " + err);
}
- assertTrue("H5Pexist lid1 "+PROP3_NAME, status > 0);
+ assertTrue("H5Pexist lid1 "+PROP3_NAME, status);
try {
status = H5.H5Pexist(lid1, PROP4_NAME);
}
@@ -749,7 +749,7 @@ public class TestH5Plist {
err.printStackTrace();
fail("H5Pexist plist_class_id: " + err);
}
- assertTrue("H5Pexist lid1 "+PROP4_NAME, status > 0);
+ assertTrue("H5Pexist lid1 "+PROP4_NAME, status);
}
finally {