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

Method testSetValue07

test/jakarta/el/TestArrayELResolver.java:302–309  ·  view source on GitHub ↗

Tests that an exception will be thrown if the value is not from the corresponding type.

()

Source from the content-addressed store, hash-verified

300 * Tests that an exception will be thrown if the value is not from the corresponding type.
301 */
302 @Test(expected = ClassCastException.class)
303 public void testSetValue07() {
304 ArrayELResolver resolver = new ArrayELResolver();
305 ELContext context = new StandardELContext(ELManager.getExpressionFactory());
306
307 String[] base = new String[] { "element" };
308 resolver.setValue(context, base, Integer.valueOf(0), Integer.valueOf(1));
309 }
310
311 /**
312 * Tests setting arrays of primitives. https://bz.apache.org/bugzilla/show_bug.cgi?id=55691

Callers

nothing calls this directly

Calls 3

getExpressionFactoryMethod · 0.95
setValueMethod · 0.95
valueOfMethod · 0.45

Tested by

no test coverage detected