MCPcopy Index your code
hub / github.com/apache/tomcat / testSetValue03

Method testSetValue03

test/jakarta/el/TestArrayELResolver.java:247–253  ·  view source on GitHub ↗

Tests that an exception is thrown when readOnly is true.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

getExpressionFactoryMethod · 0.95
setValueMethod · 0.95

Tested by

no test coverage detected