Tests that a valid property is resolved.
()
| 46 | * Tests that a valid property is resolved. |
| 47 | */ |
| 48 | @Test |
| 49 | public void testGetType03() { |
| 50 | MapELResolver mapELResolver = new MapELResolver(); |
| 51 | ELContext context = new StandardELContext(ELManager.getExpressionFactory()); |
| 52 | |
| 53 | Class<?> result = mapELResolver.getType(context, new HashMap<>(), "test"); |
| 54 | |
| 55 | Assert.assertEquals(Object.class, result); |
| 56 | Assert.assertTrue(context.isPropertyResolved()); |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Tests that a null context results in an NPE as per EL Javadoc. |
nothing calls this directly
no test coverage detected