Fixing assert4j failures
This commit is contained in:
@@ -118,7 +118,7 @@ public class ContextFunctionCatalogInitializerTests {
|
||||
public void missingType() {
|
||||
try {
|
||||
create(MissingTypeConfiguration.class);
|
||||
Assertions.fail();
|
||||
Assertions.fail("");
|
||||
}
|
||||
catch (BeanCreationException e) {
|
||||
// ignore, the test call must fail
|
||||
|
||||
@@ -82,7 +82,7 @@ public class RoutingFunctionTests {
|
||||
assertThat(function).isNotNull();
|
||||
try {
|
||||
function.apply(message);
|
||||
Assertions.fail();
|
||||
Assertions.fail("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
// Good
|
||||
@@ -206,7 +206,7 @@ public class RoutingFunctionTests {
|
||||
.build();
|
||||
try {
|
||||
function.apply(message);
|
||||
Assertions.fail();
|
||||
Assertions.fail("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
assertThat(e.getMessage()).isEqualTo("EL1005E: Type cannot be found 'java.lang.Runtime'");
|
||||
@@ -270,7 +270,7 @@ public class RoutingFunctionTests {
|
||||
// no function.definition header or function property
|
||||
try {
|
||||
function.apply(MessageBuilder.withPayload("hello").build());
|
||||
Assertions.fail();
|
||||
Assertions.fail("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
// ignore
|
||||
@@ -280,7 +280,7 @@ public class RoutingFunctionTests {
|
||||
try {
|
||||
function.apply(MessageBuilder.withPayload("hello")
|
||||
.setHeader(FunctionProperties.PREFIX + ".definition", "blah").build());
|
||||
Assertions.fail();
|
||||
Assertions.fail("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
// ignore
|
||||
|
||||
Reference in New Issue
Block a user