Tests that a valid property is resolved.
()
| 42 | * Tests that a valid property is resolved. |
| 43 | */ |
| 44 | @Test |
| 45 | public void testGetType03() { |
| 46 | ArrayELResolver resolver = new ArrayELResolver(); |
| 47 | ELContext context = new StandardELContext(ELManager.getExpressionFactory()); |
| 48 | |
| 49 | String[] base = new String[] { "element" }; |
| 50 | Class<?> result = resolver.getType(context, base, Integer.valueOf(0)); |
| 51 | |
| 52 | Assert.assertEquals(base.getClass().getComponentType(), result); |
| 53 | Assert.assertTrue(context.isPropertyResolved()); |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Tests that the key is out of bounds and exception will be thrown. |
nothing calls this directly
no test coverage detected