Upgrade to AssertJ 3.16
This commit is contained in:
@@ -139,9 +139,9 @@ public class ConstructorInvocationTests extends AbstractExpressionTests {
|
||||
|
||||
// 1 will make it throw a RuntimeException - SpEL will let this through
|
||||
eContext.setVariable("bar", 1);
|
||||
assertThatExceptionOfType(Exception.class).isThrownBy(() ->
|
||||
expr.getValue(eContext))
|
||||
.satisfies(ex -> assertThat(ex).isNotInstanceOf(SpelEvaluationException.class));
|
||||
assertThatExceptionOfType(Exception.class)
|
||||
.isThrownBy(() -> expr.getValue(eContext))
|
||||
.isNotInstanceOf(SpelEvaluationException.class);
|
||||
// A problem occurred whilst attempting to construct an object of type
|
||||
// 'org.springframework.expression.spel.ConstructorInvocationTests$Tester'
|
||||
// using arguments '(java.lang.Integer)'
|
||||
|
||||
@@ -148,8 +148,9 @@ public class MethodInvocationTests extends AbstractExpressionTests {
|
||||
Expression expr = parser.parseExpression("throwException(#bar)");
|
||||
|
||||
context.setVariable("bar", 2);
|
||||
assertThatExceptionOfType(Exception.class).isThrownBy(() -> expr.getValue(context))
|
||||
.satisfies(ex -> assertThat(ex).isNotInstanceOf(SpelEvaluationException.class));
|
||||
assertThatExceptionOfType(Exception.class)
|
||||
.isThrownBy(() -> expr.getValue(context))
|
||||
.isNotInstanceOf(SpelEvaluationException.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user