This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit fd493dc88c63767dbbe3cb4c3720e66be2fb3b27 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Tue Apr 9 17:09:39 2024 +0200 (chores) camel-core: removed commented out code --- .../org/apache/camel/component/bean/BeanProxyNoBindingTest.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanProxyNoBindingTest.java b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanProxyNoBindingTest.java index d39956a72f5..9495f0691d3 100644 --- a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanProxyNoBindingTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanProxyNoBindingTest.java @@ -111,15 +111,6 @@ public class BeanProxyNoBindingTest extends ContextTestSupport { Endpoint endpoint = context.getEndpoint("direct:start"); OrderService service = ProxyHelper.createProxy(endpoint, false, OrderService.class); - /* try { - service.invalidReturnType("<order type=\"beer\">Carlsberg</order>"); - fail("Should have thrown exception"); - } catch (Exception e) { - // expected - InvalidPayloadException cause = assertIsInstanceOf(InvalidPayloadException.class, e.getCause()); - assertEquals(Integer.class, cause.getType()); - }*/ - Exception e = assertThrows(Exception.class, () -> service.invalidReturnType("<order type=\"beer\">Carlsberg</order>"), "Should have thrown exception");
