1516171819202122232425
public class BeanPrefixTest { @Test public void testFieldPrefix1() { LifeBean lifeBean = new LifeBean(); String foo = BeanUtil.getProperty(lifeBean, "foo").toString(); assertEquals("foo", foo);
4344454647484950515253
JoddIntrospector.introspector = new CachingIntrospector(); } @Test public void testFieldPrefix1withEmpty() { LifeBean lifeBean = new LifeBean(); String foo = BeanUtil.getProperty(lifeBean, "foo").toString(); assertEquals("foo", foo);
7273747576777879808182
JoddIntrospector.introspector = new CachingIntrospector(); } @Test public void testFieldPrefix2() { LifeBean lifeBean = new LifeBean(); String bar = BeanUtil.getProperty(lifeBean, "bar").toString(); assertEquals("bar", bar);