Fixing assert4j failures
This commit is contained in:
@@ -1462,7 +1462,7 @@ public class FunctionInvokerTests {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
invoker.handleRequest(targetStream, output, null);
|
invoker.handleRequest(targetStream, output, null);
|
||||||
Assertions.fail();
|
Assertions.fail("");
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
// TODO: handle exception
|
// TODO: handle exception
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class AsyncStartTests {
|
|||||||
ServerlessHttpServletResponse response = new ServerlessHttpServletResponse();
|
ServerlessHttpServletResponse response = new ServerlessHttpServletResponse();
|
||||||
try {
|
try {
|
||||||
mvc.service(request, response);
|
mvc.service(request, response);
|
||||||
Assertions.fail();
|
Assertions.fail("");
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
assertThat(e).isInstanceOf(IllegalStateException.class);
|
assertThat(e).isInstanceOf(IllegalStateException.class);
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ public class ContextFunctionCatalogInitializerTests {
|
|||||||
public void missingType() {
|
public void missingType() {
|
||||||
try {
|
try {
|
||||||
create(MissingTypeConfiguration.class);
|
create(MissingTypeConfiguration.class);
|
||||||
Assertions.fail();
|
Assertions.fail("");
|
||||||
}
|
}
|
||||||
catch (BeanCreationException e) {
|
catch (BeanCreationException e) {
|
||||||
// ignore, the test call must fail
|
// ignore, the test call must fail
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public class RoutingFunctionTests {
|
|||||||
assertThat(function).isNotNull();
|
assertThat(function).isNotNull();
|
||||||
try {
|
try {
|
||||||
function.apply(message);
|
function.apply(message);
|
||||||
Assertions.fail();
|
Assertions.fail("");
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
// Good
|
// Good
|
||||||
@@ -206,7 +206,7 @@ public class RoutingFunctionTests {
|
|||||||
.build();
|
.build();
|
||||||
try {
|
try {
|
||||||
function.apply(message);
|
function.apply(message);
|
||||||
Assertions.fail();
|
Assertions.fail("");
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
assertThat(e.getMessage()).isEqualTo("EL1005E: Type cannot be found 'java.lang.Runtime'");
|
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
|
// no function.definition header or function property
|
||||||
try {
|
try {
|
||||||
function.apply(MessageBuilder.withPayload("hello").build());
|
function.apply(MessageBuilder.withPayload("hello").build());
|
||||||
Assertions.fail();
|
Assertions.fail("");
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
// ignore
|
// ignore
|
||||||
@@ -280,7 +280,7 @@ public class RoutingFunctionTests {
|
|||||||
try {
|
try {
|
||||||
function.apply(MessageBuilder.withPayload("hello")
|
function.apply(MessageBuilder.withPayload("hello")
|
||||||
.setHeader(FunctionProperties.PREFIX + ".definition", "blah").build());
|
.setHeader(FunctionProperties.PREFIX + ".definition", "blah").build());
|
||||||
Assertions.fail();
|
Assertions.fail("");
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
// ignore
|
// ignore
|
||||||
|
|||||||
Reference in New Issue
Block a user