Browse Source

Marked unused values appropriately

conversation
Andy Clement 16 years ago
parent
commit
106131ab8f
  1. 1
      org.springframework.expression/src/test/java/org/springframework/expression/spel/ExpressionLanguageScenarioTests.java
  2. 2
      org.springframework.expression/src/test/java/org/springframework/expression/spel/TestScenarioCreator.java

1
org.springframework.expression/src/test/java/org/springframework/expression/spel/ExpressionLanguageScenarioTests.java

@ -389,6 +389,7 @@ public class ExpressionLanguageScenarioTests extends ExpressionTestCase { @@ -389,6 +389,7 @@ public class ExpressionLanguageScenarioTests extends ExpressionTestCase {
Expression expr = parser.parseExpression("#functionTakesColour('orange')");
try {
@SuppressWarnings("unused")
Object value = expr.getValue(ctx);
fail("Should have failed, no type converter registered");
} catch (EvaluationException ee) {}

2
org.springframework.expression/src/test/java/org/springframework/expression/spel/TestScenarioCreator.java

@ -108,7 +108,7 @@ public class TestScenarioCreator { @@ -108,7 +108,7 @@ public class TestScenarioCreator {
/**
* Create a context configuration that tests can reference into using the
* @() language construct.
* @(context:objectName) will index a particular object within a particular context. The 'root' context will be used
* at(context:objectName) will index a particular object within a particular context. The 'root' context will be used
* for references where no context is specified, eg.
* @(orange).
*

Loading…
Cancel
Save