1 10 Fix java data export functions (#450)
* HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop * Merge gcc 10 diagnostics option from develop * Merge #318 OSX changes from develop * Merge small changes from develop * Minor non-space formatting changes * #386 copyright corrections for java folder * Merges from develop #358 patches from vtk #361 fix header guard spelling * Merge updates #358 patches from vtk #361 fix header guard spelling * format fix * Fix missing underscore and make H5public.h closer to dev * Merges from develop #340 clang -Wformat-security warnings #360 Fixed uninitialized warnings header guard underscore cleanup JNI cleanup * format alignment * Add missing test ref file * Merge #380 from develop * Finish java merges from develop * Fix java issues with tests and javadoc * Correct use of attribute access plist * Remove debug code * Remove unused variable * Change file access to read only for java tests * Split clang format operations. * More javadoc comments * Remove pre-split setting * format source
This commit is contained in:
@@ -32,10 +32,10 @@ import org.junit.rules.TestName;
|
||||
public class TestH5Gbasic {
|
||||
@Rule public TestName testname = new TestName();
|
||||
private static final String H5_FILE = "testGb.h5";
|
||||
long H5fid = -1;
|
||||
long H5fid = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
private final long _createGroup(long fid, String name) {
|
||||
long gid = -1;
|
||||
long gid = HDF5Constants.H5I_INVALID_HID;
|
||||
try {
|
||||
gid = H5.H5Gcreate(fid, name, HDF5Constants.H5P_DEFAULT,
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
@@ -84,7 +84,7 @@ public class TestH5Gbasic {
|
||||
|
||||
@Test(expected = NullPointerException.class)
|
||||
public void testH5Gcreate_null() throws Throwable {
|
||||
long gid = -1;
|
||||
long gid = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
// it should fail because the group name is null
|
||||
gid = H5.H5Gcreate(H5fid, null, HDF5Constants.H5P_DEFAULT,
|
||||
@@ -101,7 +101,7 @@ public class TestH5Gbasic {
|
||||
|
||||
@Test
|
||||
public void testH5Gcreate() {
|
||||
long gid = -1;
|
||||
long gid = HDF5Constants.H5I_INVALID_HID;
|
||||
try {
|
||||
gid = H5.H5Gcreate(H5fid, "/testH5Gcreate",
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT,
|
||||
@@ -144,7 +144,7 @@ public class TestH5Gbasic {
|
||||
|
||||
@Test
|
||||
public void testH5Gcreate_anon() {
|
||||
long gid = -1;
|
||||
long gid = HDF5Constants.H5I_INVALID_HID;
|
||||
try {
|
||||
gid = H5.H5Gcreate_anon(H5fid, HDF5Constants.H5P_DEFAULT,
|
||||
HDF5Constants.H5P_DEFAULT);
|
||||
@@ -160,7 +160,7 @@ public class TestH5Gbasic {
|
||||
|
||||
@Test(expected = NullPointerException.class)
|
||||
public void testH5Gopen_null() throws Throwable {
|
||||
long gid = -1;
|
||||
long gid = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
gid = H5.H5Gopen(H5fid, null, HDF5Constants.H5P_DEFAULT);
|
||||
|
||||
@@ -174,7 +174,7 @@ public class TestH5Gbasic {
|
||||
|
||||
@Test(expected = HDF5LibraryException.class)
|
||||
public void testH5Gopen_not_exists() throws Throwable {
|
||||
long gid = -1;
|
||||
long gid = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
gid = H5.H5Gopen(H5fid, "Never_created", HDF5Constants.H5P_DEFAULT);
|
||||
|
||||
@@ -208,7 +208,7 @@ public class TestH5Gbasic {
|
||||
|
||||
@Test
|
||||
public void testH5Gget_create_plist() {
|
||||
long pid = -1;
|
||||
long pid = HDF5Constants.H5I_INVALID_HID;
|
||||
long gid = _createGroup(H5fid, "/testH5Gcreate");
|
||||
assertTrue(gid > 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user