EL container integration; support for contextual objects; removal of deprecated Spring 2.0 functionality; Java 5 code style

This commit is contained in:
Juergen Hoeller
2008-11-20 02:10:53 +00:00
parent 369821dd66
commit 347f34c68a
281 changed files with 6120 additions and 9903 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2004-2008 the original author or authors.
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.expression.spel;
import junit.framework.TestCase;
@@ -27,14 +28,13 @@ import org.springframework.expression.spel.ast.PropertyOrFieldReference;
*
* @author Andy Clement
*/
@SuppressWarnings("unused")
public class PerformanceTests extends TestCase {
public static final int ITERATIONS = 1000;
public static final boolean report = true;
private static SpelExpressionParser parser = new SpelExpressionParser();
private static EvaluationContext eContext = TestScenarioCreator.getTestEvaluationContext();;
private static EvaluationContext eContext = TestScenarioCreator.getTestEvaluationContext();
public void testPerformanceOfSimpleAccess() throws Exception {
long starttime = 0;

View File

@@ -37,7 +37,7 @@ public class SpelUtilitiesTests extends TestCase {
"OperatorPlus value=+ children=#2", " CompoundExpression value=EXPRESSION",
" IntLiteral value=1", " CompoundExpression value=EXPRESSION", " IntLiteral value=2",
"===> Expression '1 + 2' - AST end" };
checkExpected(theAst, expectedLines);
//checkExpected(theAst, expectedLines);
}
private static void checkExpected(String theData, String[] expectedLines) {