Skip to content

Commit

Permalink
Adjust test.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Dec 18, 2023
1 parent ce2fd1c commit 9b377b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public void testFailingFailFast() {
Plugin.Engine.ErrorHandler.Failing.FAIL_FAST.onError(typeDescription, plugin, throwable);
}

@Test(expected = UnsupportedOperationException.class)
@Test(expected = IllegalStateException.class)
public void testFailingFailFastDoesNotSupportFailAfterType() {
Plugin.Engine.ErrorHandler.Failing.FAIL_FAST.onError(typeDescription, Collections.singletonList(throwable));
}

@Test(expected = UnsupportedOperationException.class)
@Test(expected = IllegalStateException.class)
public void testFailingFailFastDoesNotSupportFailLast() {
Plugin.Engine.ErrorHandler.Failing.FAIL_FAST.onError(Collections.singletonMap(typeDescription, Collections.singletonList(throwable)));
}
Expand All @@ -61,7 +61,7 @@ public void testFailingFailAfterType() {
Plugin.Engine.ErrorHandler.Failing.FAIL_AFTER_TYPE.onError(typeDescription, Collections.singletonList(throwable));
}

@Test(expected = UnsupportedOperationException.class)
@Test(expected = IllegalStateException.class)
public void testFailingFailAfterTypeDoesNotSupportFailLast() {
Plugin.Engine.ErrorHandler.Failing.FAIL_AFTER_TYPE.onError(Collections.singletonMap(typeDescription, Collections.singletonList(throwable)));
}
Expand Down

0 comments on commit 9b377b9

Please sign in to comment.