Skip to content

Commit 9b377b9

Browse files
committed
Adjust test.
1 parent ce2fd1c commit 9b377b9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

byte-buddy-dep/src/test/java/net/bytebuddy/build/PluginEngineErrorHandlerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public void testFailingFailFast() {
3636
Plugin.Engine.ErrorHandler.Failing.FAIL_FAST.onError(typeDescription, plugin, throwable);
3737
}
3838

39-
@Test(expected = UnsupportedOperationException.class)
39+
@Test(expected = IllegalStateException.class)
4040
public void testFailingFailFastDoesNotSupportFailAfterType() {
4141
Plugin.Engine.ErrorHandler.Failing.FAIL_FAST.onError(typeDescription, Collections.singletonList(throwable));
4242
}
4343

44-
@Test(expected = UnsupportedOperationException.class)
44+
@Test(expected = IllegalStateException.class)
4545
public void testFailingFailFastDoesNotSupportFailLast() {
4646
Plugin.Engine.ErrorHandler.Failing.FAIL_FAST.onError(Collections.singletonMap(typeDescription, Collections.singletonList(throwable)));
4747
}
@@ -61,7 +61,7 @@ public void testFailingFailAfterType() {
6161
Plugin.Engine.ErrorHandler.Failing.FAIL_AFTER_TYPE.onError(typeDescription, Collections.singletonList(throwable));
6262
}
6363

64-
@Test(expected = UnsupportedOperationException.class)
64+
@Test(expected = IllegalStateException.class)
6565
public void testFailingFailAfterTypeDoesNotSupportFailLast() {
6666
Plugin.Engine.ErrorHandler.Failing.FAIL_AFTER_TYPE.onError(Collections.singletonMap(typeDescription, Collections.singletonList(throwable)));
6767
}

0 commit comments

Comments
 (0)