MCPcopy Create free account
hub / github.com/apache/tomcat / testSetValue03

Method testSetValue03

test/jakarta/el/TestMapELResolver.java:117–123  ·  view source on GitHub ↗

Tests that an exception is thrown when readOnly is true.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

getExpressionFactoryMethod · 0.95
setValueMethod · 0.95

Tested by

no test coverage detected