Package yms.tinyvelocity.providers

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


    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

  @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

Related Classes of yms.tinyvelocity.providers.POJOValuesProvider

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.