diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-04-19 18:08:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 18:08:09 (GMT) |
commit | 03c3a5469542688a52d5a20242d2334408f8ba33 (patch) | |
tree | 46e30ea4aa99b68279fe80c9ad56b1a6bbfcfe7c /java/test/TestH5Eregister.java | |
parent | 32ef796e470da3e4de364d8dc469b03f5f6fafdc (diff) | |
download | hdf5-03c3a5469542688a52d5a20242d2334408f8ba33.zip hdf5-03c3a5469542688a52d5a20242d2334408f8ba33.tar.gz hdf5-03c3a5469542688a52d5a20242d2334408f8ba33.tar.bz2 |
Develop clang format java (#1653)
Diffstat (limited to 'java/test/TestH5Eregister.java')
-rw-r--r-- | java/test/TestH5Eregister.java | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/java/test/TestH5Eregister.java b/java/test/TestH5Eregister.java index 99e8e5f..b4c63e0 100644 --- a/java/test/TestH5Eregister.java +++ b/java/test/TestH5Eregister.java @@ -14,6 +14,7 @@ package test; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; + import hdf.hdf5lib.H5; import org.junit.After; @@ -23,40 +24,48 @@ import org.junit.Test; import org.junit.rules.TestName; public class TestH5Eregister { - @Rule public TestName testname = new TestName(); + @Rule + public TestName testname = new TestName(); @Before - public void checkOpenIDs() { - assertTrue("H5 open ids is 0",H5.getOpenIDCount()==0); + public void checkOpenIDs() + { + assertTrue("H5 open ids is 0", H5.getOpenIDCount() == 0); System.out.print(testname.getMethodName()); } @After - public void nextTestName() { + public void nextTestName() + { System.out.println(); } @Test(expected = NullPointerException.class) - public void testH5Eregister_class_cls_name_null() throws Throwable { + public void testH5Eregister_class_cls_name_null() throws Throwable + { H5.H5Eregister_class(null, "libname", "version"); } @Test(expected = NullPointerException.class) - public void testH5Eregister_class_lib_name_null() throws Throwable { + public void testH5Eregister_class_lib_name_null() throws Throwable + { H5.H5Eregister_class("clsname", null, "version"); } @Test(expected = NullPointerException.class) - public void testH5Eregister_class_version_null() throws Throwable { + public void testH5Eregister_class_version_null() throws Throwable + { H5.H5Eregister_class("clsname", "libname", null); } @Test(expected = IllegalArgumentException.class) - public void testH5Eunregister_class_invalid_classid() throws Throwable { + public void testH5Eunregister_class_invalid_classid() throws Throwable + { H5.H5Eunregister_class(-1); } @Test - public void testH5Eregister_class() { + public void testH5Eregister_class() + { long hdf_java_classid = -1; try { hdf_java_classid = H5.H5Eregister_class("HDF-Java-Error", "hdf-java", "2.5"); |