1 20 package org.openi.web; 21 22 import java.lang.reflect.InvocationTargetException ; 23 import java.util.LinkedList ; 24 import java.util.List ; 25 26 import org.ajaxtags.helpers.AjaxXmlBuilder; 27 import org.apache.log4j.Logger; 28 29 import junit.framework.TestCase; 30 31 37 public class AjaxTest extends TestCase { 38 private static Logger logger = Logger.getLogger(AjaxTest.class); 39 40 public static void main(String [] args) { 41 junit.textui.TestRunner.run(AjaxTest.class); 42 } 43 44 47 protected void setUp() throws Exception { 48 super.setUp(); 49 org.openi.test.Util.setupLog4j(); 50 } 51 52 55 protected void tearDown() throws Exception { 56 super.tearDown(); 57 } 58 59 public void testAjax() throws IllegalAccessException , InvocationTargetException , NoSuchMethodException { 60 AjaxXmlBuilder builder = new AjaxXmlBuilder(); 61 builder.addItem("HR", "msas"); 62 builder.addItem("Warehouse", "msas"); 63 builder.addItem("Sales", "msas"); 64 logger.debug(builder.toString()); 65 } 66 67 } 68 | Popular Tags |