Skip to content

Commit

Permalink
Update exception class for expected failures
Browse files Browse the repository at this point in the history
Signed-off-by: Quincey Koziol <[email protected]>
  • Loading branch information
qkoziol committed Jan 9, 2025
1 parent f7a2183 commit 621bd35
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions java/test/TestH5Sbasic.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,13 @@ public void testH5Sget_regular_hyperslab_invalid() throws Throwable
H5.H5Sget_regular_hyperslab(-1, q_start, q_stride, q_count, q_block);
}

@Test(expected = hdf.hdf5lib.exceptions.HDF5FunctionArgumentException.class)
@Test(expected = hdf.hdf5lib.exceptions.HDF5IdException.class)
public void testH5Sselect_copy_invalid() throws Throwable
{
H5.H5Sselect_copy(-1, -1);
}

@Test(expected = hdf.hdf5lib.exceptions.HDF5DataspaceInterfaceException.class)
@Test(expected = hdf.hdf5lib.exceptions.HDF5IdException.class)
public void testH5Sselect_shape_same_invalid() throws Throwable
{
H5.H5Sselect_shape_same(-1, -1);
Expand Down Expand Up @@ -389,13 +389,13 @@ public void testH5Sselect_intersect_block_rank_end() throws Throwable
}
}

@Test(expected = hdf.hdf5lib.exceptions.HDF5DataspaceInterfaceException.class)
@Test(expected = hdf.hdf5lib.exceptions.HDF5IdException.class)
public void testH5Sselect_project_intersection_invalid() throws Throwable
{
H5.H5Sselect_project_intersection(-1, -1, -1);
}

@Test(expected = hdf.hdf5lib.exceptions.HDF5FunctionArgumentException.class)
@Test(expected = hdf.hdf5lib.exceptions.HDF5IdException.class)
public void testH5Scombine_hyperslab_invalid() throws Throwable
{
long start[] = new long[2];
Expand Down Expand Up @@ -449,13 +449,13 @@ public void testH5Scombine_hyperslab_null_count() throws Throwable
}
}

@Test(expected = hdf.hdf5lib.exceptions.HDF5FunctionArgumentException.class)
@Test(expected = hdf.hdf5lib.exceptions.HDF5IdException.class)
public void testH5Smodify_select_invalid() throws Throwable
{
H5.H5Smodify_select(-1, 0, -1);
}

@Test(expected = hdf.hdf5lib.exceptions.HDF5FunctionArgumentException.class)
@Test(expected = hdf.hdf5lib.exceptions.HDF5IdException.class)
public void testH5Scombine_select_invalid() throws Throwable
{
H5.H5Scombine_select(-1, 0, -1);
Expand Down

0 comments on commit 621bd35

Please sign in to comment.