From 9b377b96e50e8562169275f429e190ecdd12d132 Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Mon, 18 Dec 2023 12:36:41 +0100 Subject: [PATCH] Adjust test. --- .../net/bytebuddy/build/PluginEngineErrorHandlerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/byte-buddy-dep/src/test/java/net/bytebuddy/build/PluginEngineErrorHandlerTest.java b/byte-buddy-dep/src/test/java/net/bytebuddy/build/PluginEngineErrorHandlerTest.java index 52277a0903..082a77a6b9 100644 --- a/byte-buddy-dep/src/test/java/net/bytebuddy/build/PluginEngineErrorHandlerTest.java +++ b/byte-buddy-dep/src/test/java/net/bytebuddy/build/PluginEngineErrorHandlerTest.java @@ -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))); } @@ -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))); }