Tests that a result is returned even when a coercion cannot be performed.
()
| 69 | * Tests that a result is returned even when a coercion cannot be performed. |
| 70 | */ |
| 71 | @Test |
| 72 | public void testGetType05() { |
| 73 | ArrayELResolver resolver = new ArrayELResolver(); |
| 74 | ELContext context = new StandardELContext(ELManager.getExpressionFactory()); |
| 75 | |
| 76 | String[] base = new String[] { "element" }; |
| 77 | Class<?> result = resolver.getType(context, base, "index"); |
| 78 | |
| 79 | Assert.assertEquals(base.getClass().getComponentType(), result); |
| 80 | Assert.assertTrue(context.isPropertyResolved()); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Tests that a null result is returned when the base is null. |
nothing calls this directly
no test coverage detected