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