Tests that an exception will be thrown if the value is not from the corresponding type.
()
| 300 | * Tests that an exception will be thrown if the value is not from the corresponding type. |
| 301 | */ |
| 302 | @Test(expected = ClassCastException.class) |
| 303 | public void testSetValue07() { |
| 304 | ArrayELResolver resolver = new ArrayELResolver(); |
| 305 | ELContext context = new StandardELContext(ELManager.getExpressionFactory()); |
| 306 | |
| 307 | String[] base = new String[] { "element" }; |
| 308 | resolver.setValue(context, base, Integer.valueOf(0), Integer.valueOf(1)); |
| 309 | } |
| 310 | |
| 311 | /** |
| 312 | * Tests setting arrays of primitives. https://bz.apache.org/bugzilla/show_bug.cgi?id=55691 |
nothing calls this directly
no test coverage detected