|
|
|
@ -96,8 +96,7 @@ public class ExpressionLanguageScenarioTests extends AbstractExpressionTests { |
|
|
|
// Use the standard evaluation context
|
|
|
|
// Use the standard evaluation context
|
|
|
|
StandardEvaluationContext ctx = new StandardEvaluationContext(); |
|
|
|
StandardEvaluationContext ctx = new StandardEvaluationContext(); |
|
|
|
ctx.setVariable("favouriteColour","blue"); |
|
|
|
ctx.setVariable("favouriteColour","blue"); |
|
|
|
List<Integer> primes = new ArrayList<>(); |
|
|
|
List<Integer> primes = Arrays.asList(2, 3, 5, 7, 11, 13, 17); |
|
|
|
primes.addAll(Arrays.asList(2,3,5,7,11,13,17)); |
|
|
|
|
|
|
|
ctx.setVariable("primes",primes); |
|
|
|
ctx.setVariable("primes",primes); |
|
|
|
|
|
|
|
|
|
|
|
Expression expr = parser.parseRaw("#favouriteColour"); |
|
|
|
Expression expr = parser.parseRaw("#favouriteColour"); |
|
|
|
|