trunk/test/StringTemplateTest.java
author chris <chris@marvin>
Tue, 20 Jan 2009 10:21:03 +0100
changeset 0 f907866f0e4b
permissions -rw-r--r--
Initial import.
     1 /*
     2  * To change this template, choose Tools | Templates
     3  * and open the template in the editor.
     4  */
     5 
     6 package test;
     7 
     8 import com.so.news.util.StringTemplate;
     9 
    10 /**
    11  *
    12  * @author chris
    13  */
    14 public class StringTemplateTest 
    15 {
    16   public static void main(String[] args)
    17   {
    18     StringTemplate templ 
    19       = new StringTemplate("SELECT %row FROM %table WHERE %row = ich");
    20     
    21     templ.set("row", "name");
    22     templ.set("table", "UserTable");
    23     
    24     System.out.println(templ.toString());
    25   }
    26 }