Examples of POJOValuesProvider


Examples of yms.tinyvelocity.providers.POJOValuesProvider

    assertEquals("Hi there 10,joe",result);
  }
 
  @Test
  public void testVarsPOJO(){
    String result = engine.parse("Hi there ${var},${var2}", new POJOValuesProvider(new Model())).trim();
    assertEquals("Hi there 10,yyy",result);
  }
View Full Code Here

Examples of yms.tinyvelocity.providers.POJOValuesProvider

    assertEquals("Hi there 10,yyy",result);
  }
 
  @Test
  public void testVarsPOJOGetters(){
    String result = engine.parse("Hi there ${var},${var2}", new POJOValuesProvider(new ModelGetters())).trim();
    assertEquals("Hi there 10,yyy",result);
  }
View Full Code Here

Examples of yms.tinyvelocity.providers.POJOValuesProvider

  @Test
  public void testNestedProperty(){
    TreeMap<String, Object> model = new TreeMap<String, Object>();
    model.put("a", new Model());
    String result = engine.parse("${a.var}\n", new POJOValuesProvider(model)).trim();
    assertEquals("10",result);
  }
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.