MCPcopy Create free account
hub / github.com/apache/tomcat / testSetValue04

Method testSetValue04

test/jakarta/el/TestBeanELResolver.java:227–237  ·  view source on GitHub ↗

Tests that a valid property is resolved.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 4

getExpressionFactoryMethod · 0.95
setValueMethod · 0.95
getValueMethod · 0.95
isPropertyResolvedMethod · 0.45

Tested by

no test coverage detected