Package jodd.bean.data

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


    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

TOP

Related Classes of jodd.bean.data.Abean

Copyright © 2018 www.massapicom. 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.