Remove accidentally introduced SpEL test method
SpringEL300Tests's #testArray method was originally introduced with SPR-9203, which has not yet been backported to 3.1.x. During the process of backporting SPR-9486 functionality, this method was accidentally introduced, causing false negative test failures. This commit removes the offending test method. Issue: SPR-9203, SPR-9486
This commit is contained in:
@@ -1159,35 +1159,6 @@ public class SpringEL300Tests extends ExpressionTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testArray() {
|
||||
ExpressionParser parser = new SpelExpressionParser();
|
||||
StandardEvaluationContext context = new StandardEvaluationContext();
|
||||
Expression expression = null;
|
||||
Object result = null;
|
||||
|
||||
expression = parser.parseExpression("new java.lang.Long[0].class");
|
||||
result = expression.getValue(context, "");
|
||||
assertEquals("Equal assertion failed: ", "class [Ljava.lang.Long;", result.toString());
|
||||
|
||||
expression = parser.parseExpression("T(java.lang.Long[])");
|
||||
result = expression.getValue(context, "");
|
||||
assertEquals("Equal assertion failed: ", "class [Ljava.lang.Long;", result.toString());
|
||||
|
||||
expression = parser.parseExpression("T(java.lang.String[][][])");
|
||||
result = expression.getValue(context, "");
|
||||
assertEquals("Equal assertion failed: ", "class [[[Ljava.lang.String;", result.toString());
|
||||
assertEquals("T(java.lang.String[][][])",((SpelExpression)expression).toStringAST());
|
||||
|
||||
expression = parser.parseExpression("new int[0].class");
|
||||
result = expression.getValue(context, "");
|
||||
assertEquals("Equal assertion failed: ", "class [I", result.toString());
|
||||
|
||||
expression = parser.parseExpression("T(int[][])");
|
||||
result = expression.getValue(context, "");
|
||||
assertEquals("Equal assertion failed: ", "class [[I", result.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void SPR_9486_floatFunctionResolverTest() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user