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

Method testGetType04

test/jakarta/el/TestArrayELResolver.java:59–66  ·  view source on GitHub ↗

Tests that the key is out of bounds and exception will be thrown.

()

Source from the content-addressed store, hash-verified

57 * Tests that the key is out of bounds and exception will be thrown.
58 */
59 @Test(expected = PropertyNotFoundException.class)
60 public void testGetType04() {
61 ArrayELResolver resolver = new ArrayELResolver();
62 ELContext context = new StandardELContext(ELManager.getExpressionFactory());
63
64 String[] base = new String[] { "element" };
65 resolver.getType(context, base, Integer.valueOf(1));
66 }
67
68 /**
69 * Tests that a result is returned even when a coercion cannot be performed.

Callers

nothing calls this directly

Calls 3

getExpressionFactoryMethod · 0.95
getTypeMethod · 0.95
valueOfMethod · 0.45

Tested by

no test coverage detected