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

Method testGetType01

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

Source from the content-addressed store, hash-verified

54
55
56 @Test
57 public void testGetType01() {
58 ELProcessor processor = new ELProcessor();
59 ELContext context = processor.getELManager().getELContext();
60 ExpressionFactory factory = ELManager.getExpressionFactory();
61
62 processor.defineBean("bean01", new TesterBeanB());
63 ValueExpression ve = factory.createValueExpression(
64 context, "${bean01.text = 'hello'}", String.class);
65
66 Assert.assertEquals(String.class, ve.getType(context));
67 Assert.assertEquals("hello", ve.getValue(context));
68 }
69
70
71 @Test

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