Tests that an exception is thrown when readOnly is true.
()
| 115 | * Tests that an exception is thrown when readOnly is true. |
| 116 | */ |
| 117 | @Test(expected = PropertyNotWritableException.class) |
| 118 | public void testSetValue03() { |
| 119 | MapELResolver mapELResolver = new MapELResolver(true); |
| 120 | ELContext context = new StandardELContext(ELManager.getExpressionFactory()); |
| 121 | |
| 122 | mapELResolver.setValue(context, new HashMap<>(), new Object(), new Object()); |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Tests that a valid property is set. |
nothing calls this directly
no test coverage detected