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

Method testSetValue09

test/jakarta/el/TestArrayELResolver.java:328–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326 * Null base should be a NO-OP rather than an exception
327 */
328 @Test
329 public void testSetValue09() {
330 ArrayELResolver resolver = new ArrayELResolver();
331 ELContext context = new StandardELContext(ELManager.getExpressionFactory());
332
333 resolver.setValue(context, null, Integer.valueOf(1), Integer.valueOf(4));
334 Assert.assertFalse(context.isPropertyResolved());
335 }
336
337 /**
338 * Tests that a null context results in an NPE as per EL Javadoc.

Callers

nothing calls this directly

Calls 4

getExpressionFactoryMethod · 0.95
setValueMethod · 0.95
valueOfMethod · 0.45
isPropertyResolvedMethod · 0.45

Tested by

no test coverage detected