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

Method testGetValue03

test/jakarta/el/TestArrayELResolver.java:117–127  ·  view source on GitHub ↗

Tests that a valid property is resolved.

()

Source from the content-addressed store, hash-verified

115 * Tests that a valid property is resolved.
116 */
117 @Test
118 public void testGetValue03() {
119 ArrayELResolver resolver = new ArrayELResolver();
120 ELContext context = new StandardELContext(ELManager.getExpressionFactory());
121
122 String[] base = new String[] { "element" };
123 Object result = resolver.getValue(context, base, Integer.valueOf(0));
124
125 Assert.assertEquals("element", result);
126 Assert.assertTrue(context.isPropertyResolved());
127 }
128
129 @Test
130 public void testGetValueCoercion01() {

Callers

nothing calls this directly

Calls 4

getExpressionFactoryMethod · 0.95
getValueMethod · 0.95
valueOfMethod · 0.45
isPropertyResolvedMethod · 0.45

Tested by

no test coverage detected