|
|
|
|
@ -21,7 +21,6 @@ import java.util.Set;
@@ -21,7 +21,6 @@ import java.util.Set;
|
|
|
|
|
|
|
|
|
|
import junit.framework.Assert; |
|
|
|
|
|
|
|
|
|
import org.junit.Ignore; |
|
|
|
|
import org.junit.Test; |
|
|
|
|
import org.springframework.expression.EvaluationException; |
|
|
|
|
import org.springframework.expression.Expression; |
|
|
|
|
@ -102,7 +101,6 @@ public class SetValueTests extends ExpressionTestCase {
@@ -102,7 +101,6 @@ public class SetValueTests extends ExpressionTestCase {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
@Ignore |
|
|
|
|
public void testSetGenericListElementValueTypeCoersion() { |
|
|
|
|
// TODO currently failing since setValue does a getValue and "Wien" string != PlaceOfBirth - check with andy
|
|
|
|
|
setValue("placesLivedList[0]", "Wien"); |
|
|
|
|
@ -221,7 +219,7 @@ public class SetValueTests extends ExpressionTestCase {
@@ -221,7 +219,7 @@ public class SetValueTests extends ExpressionTestCase {
|
|
|
|
|
StandardEvaluationContext lContext = TestScenarioCreator.getTestEvaluationContext(); |
|
|
|
|
Assert.assertTrue("Expression is not writeable but should be", e.isWritable(lContext)); |
|
|
|
|
e.setValue(lContext, value); |
|
|
|
|
Assert.assertEquals("Retrieved value was not equal to set value", value, e.getValue(lContext)); |
|
|
|
|
Assert.assertEquals("Retrieved value was not equal to set value", value, e.getValue(lContext,value.getClass())); |
|
|
|
|
} catch (EvaluationException ee) { |
|
|
|
|
ee.printStackTrace(); |
|
|
|
|
Assert.fail("Unexpected Exception: " + ee.getMessage()); |
|
|
|
|
|