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

Method testGetType

test/org/apache/el/parser/TestAstSetData.java:72–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71
72 @Test
73 public void testGetType() {
74 ELProcessor processor = new ELProcessor();
75 ELContext context = processor.getELManager().getELContext();
76 ExpressionFactory factory = ELManager.getExpressionFactory();
77
78 ValueExpression ve = factory.createValueExpression(
79 context, "${{'a','b','c'}}", Set.class);
80
81 Assert.assertEquals(Set.class, ve.getType(context));
82 Assert.assertEquals(simpleSet, ve.getValue(context));
83 }
84}

Callers

nothing calls this directly

Calls 6

getELManagerMethod · 0.95
getExpressionFactoryMethod · 0.95
createValueExpressionMethod · 0.95
getTypeMethod · 0.95
getValueMethod · 0.95
getELContextMethod · 0.45

Tested by

no test coverage detected