Tests that an exception is thrown when readOnly is true.
()
| 245 | * Tests that an exception is thrown when readOnly is true. |
| 246 | */ |
| 247 | @Test(expected = PropertyNotWritableException.class) |
| 248 | public void testSetValue03() { |
| 249 | ArrayELResolver resolver = new ArrayELResolver(true); |
| 250 | ELContext context = new StandardELContext(ELManager.getExpressionFactory()); |
| 251 | |
| 252 | resolver.setValue(context, new String[] {}, new Object(), new Object()); |
| 253 | } |
| 254 | |
| 255 | /** |
| 256 | * Tests that a valid property is set. |
nothing calls this directly
no test coverage detected