Tests that the propertyResolved is false if base is not Map.
()
| 162 | * Tests that the propertyResolved is false if base is not Map. |
| 163 | */ |
| 164 | @Test |
| 165 | public void testIsReadOnly02() { |
| 166 | MapELResolver mapELResolver = new MapELResolver(); |
| 167 | ELContext context = new StandardELContext(ELManager.getExpressionFactory()); |
| 168 | |
| 169 | boolean result = mapELResolver.isReadOnly(context, new Object(), new Object()); |
| 170 | |
| 171 | Assert.assertFalse(result); |
| 172 | Assert.assertFalse(context.isPropertyResolved()); |
| 173 | |
| 174 | mapELResolver = new MapELResolver(true); |
| 175 | |
| 176 | result = mapELResolver.isReadOnly(context, new Object(), new Object()); |
| 177 | |
| 178 | Assert.assertTrue(result); |
| 179 | Assert.assertFalse(context.isPropertyResolved()); |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * Tests that if the MapELResolver is constructed with readOnly the method will return always true, otherwise false. |
nothing calls this directly
no test coverage detected