Examples of Abean


Examples of jodd.bean.data.Abean

  BeanTemplateParser beanTemplateParser = new BeanTemplateParser();

  @Test
  public void testTemplate() {
    Abean a = new Abean();

    assertEquals("xxxx", beanTemplateParser.parse("xxxx", a));
    assertEquals("", beanTemplateParser.parse("", a));
    assertEquals("...abean_value...", beanTemplateParser.parse("...${fooProp}...", a));
    assertEquals("abean_value", beanTemplateParser.parse("${fooProp}", a));
View Full Code Here

Examples of jodd.bean.data.Abean

    assertEquals(".${key2}.", btp.parse(".${key2}.", map));
  }

  @Test
  public void testResolveEscapes() {
    Abean a = new Abean();
    BeanTemplateParser btp = new BeanTemplateParser();
    btp.setResolveEscapes(false);

    assertEquals("...abean_value...", btp.parse("...${fooProp}...", a));
View Full Code Here

Examples of test.destination.ABean

    /**
     * Test of readDottedProperty method, of class BeanUtils.
     */
    public void testReadDottedProperty() {
        ABean a = new ABean();
        BBean b = new BBean();
        a.setCharProperty('C');
        b.setParent(a);
        Character c = (Character) BeanUtils.readDottedProperty("parent.charProperty", b);
        assertEquals( Character.valueOf('C'), c);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.