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

Method testGetType02

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

Source from the content-addressed store, hash-verified

69
70
71 @Test
72 public void testGetType02() {
73 ELProcessor processor = new ELProcessor();
74 ELContext context = processor.getELManager().getELContext();
75 ExpressionFactory factory = ELManager.getExpressionFactory();
76
77 processor.defineBean("bean01", new TesterBeanB());
78 ValueExpression ve = factory.createValueExpression(
79 context, "${bean01.text = 'hello'; bean01.text}", String.class);
80
81 Assert.assertEquals(String.class, ve.getType(context));
82 Assert.assertEquals("hello", ve.getValue(context));
83 }
84}

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected