File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
spring-expression/src/test/java/org/springframework/expression/spel/standard Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import org .junit .jupiter .api .Test ;
22
22
23
+ import org .junit .jupiter .params .ParameterizedTest ;
24
+ import org .junit .jupiter .params .provider .EnumSource ;
23
25
import org .springframework .core .Ordered ;
24
26
import org .springframework .expression .Expression ;
25
27
import org .springframework .expression .spel .SpelCompilerMode ;
35
37
*
36
38
* @author Sam Brannen
37
39
* @author Andy Clement
40
+ * @author Yanming Zhou
38
41
* @since 5.1.14
39
42
* @see org.springframework.expression.spel.SpelCompilationCoverageTests
40
43
*/
@@ -77,9 +80,10 @@ void defaultMethodInvocation() {
77
80
assertThat (expression .getValue (context )).asInstanceOf (BOOLEAN ).isTrue ();
78
81
}
79
82
80
- @ Test // gh-28043
81
- void changingRegisteredVariableTypeDoesNotResultInFailureInMixedMode () {
82
- SpelParserConfiguration config = new SpelParserConfiguration (SpelCompilerMode .MIXED , null );
83
+ @ ParameterizedTest // gh-28043
84
+ @ EnumSource (SpelCompilerMode .class )
85
+ void changingRegisteredVariableTypeDoesNotResultInFailure (SpelCompilerMode mode ) {
86
+ SpelParserConfiguration config = new SpelParserConfiguration (mode , null );
83
87
SpelExpressionParser parser = new SpelExpressionParser (config );
84
88
Expression sharedExpression = parser .parseExpression ("#bean.value" );
85
89
StandardEvaluationContext context = new StandardEvaluationContext ();
You can’t perform that action at this time.
0 commit comments