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

Method testGetType06

test/jakarta/el/TestArrayELResolver.java:86–95  ·  view source on GitHub ↗

Tests that a null result is returned when the base is null.

()

Source from the content-addressed store, hash-verified

84 * Tests that a null result is returned when the base is null.
85 */
86 @Test
87 public void testGetType06() {
88 ArrayELResolver resolver = new ArrayELResolver();
89 ELContext context = new StandardELContext(ELManager.getExpressionFactory());
90
91 Class<?> result = resolver.getType(context, null, "index");
92
93 Assert.assertNull(result);
94 Assert.assertFalse(context.isPropertyResolved());
95 }
96
97 /**
98 * Tests that a null context results in an NPE as per EL Javadoc.

Callers

nothing calls this directly

Calls 3

getExpressionFactoryMethod · 0.95
getTypeMethod · 0.95
isPropertyResolvedMethod · 0.45

Tested by

no test coverage detected