()
| 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 | } |
nothing calls this directly
no test coverage detected