Expression e = parser.parseExpression("date", null);
e.setValue(bean, "2008-9-15");
}
public void testSetBogusValueWithCoersion() {
Expression e = parser.parseExpression("date", null);
try {
e.setValue(bean, "bogus");
fail("Should have failed tme");
} catch (ValueCoercionException ex) {
assertTrue(ex.getCause() instanceof TypeMismatchException);
}
}