Tests a coercion cannot be performed as the key is not integer.
()
| 276 | * Tests a coercion cannot be performed as the key is not integer. |
| 277 | */ |
| 278 | @Test(expected = IllegalArgumentException.class) |
| 279 | public void testSetValue05() { |
| 280 | ArrayELResolver resolver = new ArrayELResolver(); |
| 281 | ELContext context = new StandardELContext(ELManager.getExpressionFactory()); |
| 282 | |
| 283 | String[] base = new String[] { "element" }; |
| 284 | resolver.setValue(context, base, "key", "new-element"); |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * Tests that the key is out of bounds and exception will be thrown. |
nothing calls this directly
no test coverage detected