KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openi > web > AjaxTest


1 /*********************************************************************************
2  * The contents of this file are subject to the OpenI Public License Version 1.0
3  * ("License"); You may not use this file except in compliance with the
4  * License. You may obtain a copy of the License at
5  * http://www.openi.org/docs/LICENSE.txt
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is: OpenI Open Source
12  *
13  * The Initial Developer of the Original Code is Loyalty Matrix, Inc.
14  * Portions created by Loyalty Matrix, Inc. are
15  * Copyright (C) 2005 - 2006 Loyalty Matrix, Inc.; All Rights Reserved.
16  *
17  * Contributor(s): ______________________________________.
18  *
19  ********************************************************************************/

20 package org.openi.web;
21
22 import java.lang.reflect.InvocationTargetException JavaDoc;
23 import java.util.LinkedList JavaDoc;
24 import java.util.List JavaDoc;
25
26 import org.ajaxtags.helpers.AjaxXmlBuilder;
27 import org.apache.log4j.Logger;
28
29 import junit.framework.TestCase;
30
31 /**
32  * @author paullucas
33  *
34  * TODO To change the template for this generated type comment go to
35  * Window - Preferences - Java - Code Style - Code Templates
36  */

37 public class AjaxTest extends TestCase {
38     private static Logger logger = Logger.getLogger(AjaxTest.class);
39
40     public static void main(String JavaDoc[] args) {
41         junit.textui.TestRunner.run(AjaxTest.class);
42     }
43
44     /*
45      * @see TestCase#setUp()
46      */

47     protected void setUp() throws Exception JavaDoc {
48         super.setUp();
49         org.openi.test.Util.setupLog4j();
50     }
51
52     /*
53      * @see TestCase#tearDown()
54      */

55     protected void tearDown() throws Exception JavaDoc {
56         super.tearDown();
57     }
58     
59     public void testAjax() throws IllegalAccessException JavaDoc, InvocationTargetException JavaDoc, NoSuchMethodException JavaDoc{
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