trunk/test/StringTemplateTest.java
changeset 0 f907866f0e4b
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/trunk/test/StringTemplateTest.java	Tue Jan 20 10:21:03 2009 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +/*
     1.5 + * To change this template, choose Tools | Templates
     1.6 + * and open the template in the editor.
     1.7 + */
     1.8 +
     1.9 +package test;
    1.10 +
    1.11 +import com.so.news.util.StringTemplate;
    1.12 +
    1.13 +/**
    1.14 + *
    1.15 + * @author chris
    1.16 + */
    1.17 +public class StringTemplateTest 
    1.18 +{
    1.19 +  public static void main(String[] args)
    1.20 +  {
    1.21 +    StringTemplate templ 
    1.22 +      = new StringTemplate("SELECT %row FROM %table WHERE %row = ich");
    1.23 +    
    1.24 +    templ.set("row", "name");
    1.25 +    templ.set("table", "UserTable");
    1.26 +    
    1.27 +    System.out.println(templ.toString());
    1.28 +  }
    1.29 +}