Skip to content

Commit

Permalink
Fix exception handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craigacp committed Oct 16, 2023
1 parent a3c4d79 commit a50c962
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public void onnxruntime_module_append_nnapi() throws Exception {
}

@Test
public void throwWrongSizeInput() {
public void throwWrongSizeInput() throws Exception {
MockitoSession mockSession = mockitoSession().mockStatic(Arguments.class).startMocking();
try {
when(Arguments.createMap()).thenAnswer(i -> new JavaOnlyMap());
Expand Down Expand Up @@ -263,7 +263,7 @@ public void throwWrongSizeInput() {
}

@Test
public void throwWrongRankInput() {
public void throwWrongRankInput() throws Exception {
MockitoSession mockSession = mockitoSession().mockStatic(Arguments.class).startMocking();
try {
when(Arguments.createMap()).thenAnswer(i -> new JavaOnlyMap());
Expand Down

0 comments on commit a50c962

Please sign in to comment.