From 6be989b7bd3f26ef84772d551fb54f19cc195d48 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Sun, 13 Apr 2025 15:27:44 -0400 Subject: [PATCH] Fixing assert4j failures --- .../stream/function/ImplicitFunctionBindingTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/spring-cloud-stream-integration-tests/src/test/java/org/springframework/cloud/stream/function/ImplicitFunctionBindingTests.java b/core/spring-cloud-stream-integration-tests/src/test/java/org/springframework/cloud/stream/function/ImplicitFunctionBindingTests.java index 23de2d89d..b36d42e0b 100644 --- a/core/spring-cloud-stream-integration-tests/src/test/java/org/springframework/cloud/stream/function/ImplicitFunctionBindingTests.java +++ b/core/spring-cloud-stream-integration-tests/src/test/java/org/springframework/cloud/stream/function/ImplicitFunctionBindingTests.java @@ -213,7 +213,7 @@ class ImplicitFunctionBindingTests { InputDestination input = context.getBean(InputDestination.class); try { input.send(new GenericMessage("hello".getBytes())); - Assertions.fail(); // it should since there are no functions and no bindings + Assertions.fail(""); // it should since there are no functions and no bindings } catch (Exception e) { // good, we expected it @@ -240,7 +240,7 @@ class ImplicitFunctionBindingTests { InputDestination input = context.getBean(InputDestination.class); try { input.send(new GenericMessage("hello".getBytes())); - Assertions.fail(); // it should since there are no functions and no bindings + Assertions.fail(""); // it should since there are no functions and no bindings } catch (Exception e) { // good, we expected it @@ -265,7 +265,7 @@ class ImplicitFunctionBindingTests { context.getBean(InputDestination.class); } catch (Exception e) { // should not fail - Assertions.fail(); + Assertions.fail(""); } } @@ -537,7 +537,7 @@ class ImplicitFunctionBindingTests { Message inputMessageOne = MessageBuilder.withPayload("Hello".getBytes()).build(); inputDestination.send(inputMessageOne); - Assertions.fail(); + Assertions.fail(""); } catch (Exception ex) { // good @@ -661,7 +661,7 @@ class ImplicitFunctionBindingTests { try { context.getBean(FunctionConfiguration.class); - Assertions.fail(); + Assertions.fail(""); } catch (Exception e) { // ignore