Tests that a valid property is resolved.
()
| 225 | * Tests that a valid property is resolved. |
| 226 | */ |
| 227 | @Test |
| 228 | public void testSetValue04() { |
| 229 | BeanELResolver resolver = new BeanELResolver(); |
| 230 | ELContext context = new StandardELContext(ELManager.getExpressionFactory()); |
| 231 | |
| 232 | TesterBean bean = new TesterBean(BEAN_NAME); |
| 233 | resolver.setValue(context, bean, PROPERTY03_NAME, PROPERTY_VALUE); |
| 234 | |
| 235 | Assert.assertEquals(PROPERTY_VALUE, resolver.getValue(context, bean, PROPERTY03_NAME)); |
| 236 | Assert.assertTrue(context.isPropertyResolved()); |
| 237 | } |
| 238 | |
| 239 | /** |
| 240 | * Tests that an exception will be thrown when a coercion cannot be performed. |
nothing calls this directly
no test coverage detected