Skip to content

Commit d4e252e

Browse files
jgiovarescomergify[bot]
authored andcommitted
test: update exception message asserted due to Spring change
spring-projects/spring-framework#29847 (cherry picked from commit 8d7bd2e)
1 parent f3bb42d commit d4e252e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gravitee-apim-gateway/gravitee-apim-gateway-handlers/gravitee-apim-gateway-handlers-api/src/test/java/io/gravitee/gateway/handlers/api/context/ApiTemplateVariableProviderTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void should_throw_when_evaluate_null_api_properties_in_EL() {
113113
assertThat(e)
114114
.isInstanceOf(ExpressionEvaluationException.class)
115115
.hasCauseInstanceOf(SpelEvaluationException.class)
116-
.hasStackTraceContaining("EL1007E: Property or field 'prop2' cannot be found on null");
116+
.hasStackTraceContaining("EL1012E: Cannot index into a null value");
117117

118118
return true;
119119
});

gravitee-apim-gateway/gravitee-apim-gateway-handlers/gravitee-apim-gateway-handlers-api/src/test/java/io/gravitee/gateway/reactive/handlers/api/el/ApiTemplateVariableProviderTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void should_throw_when_evaluate_null_api_properties_in_EL() {
106106
assertThat(e)
107107
.isInstanceOf(ExpressionEvaluationException.class)
108108
.hasCauseInstanceOf(SpelEvaluationException.class)
109-
.hasStackTraceContaining("EL1007E: Property or field 'prop1' cannot be found on null");
109+
.hasStackTraceContaining("EL1012E: Cannot index into a null value");
110110

111111
return true;
112112
});
@@ -183,7 +183,7 @@ void should_throw_when_evaluate_null_api_properties_in_EL() {
183183
assertThat(e)
184184
.isInstanceOf(ExpressionEvaluationException.class)
185185
.hasCauseInstanceOf(SpelEvaluationException.class)
186-
.hasStackTraceContaining("EL1007E: Property or field 'prop1' cannot be found on null");
186+
.hasStackTraceContaining("EL1012E: Cannot index into a null value");
187187

188188
return true;
189189
});

0 commit comments

Comments
 (0)