01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: F_Generate.java 5086 2004-07-07 07:21:37Z benoitf $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.jtests.clients.wsgen;
25:
26: import junit.framework.Test;
27: import junit.framework.TestSuite;
28:
29: /**
30: * test case for WsGen
31: */
32: public class F_Generate extends A_WsGen {
33:
34: public F_Generate(String name) {
35: super (name);
36: }
37:
38: public static Test suite() {
39: return new TestSuite(F_Generate.class);
40: }
41:
42: public void setUp() throws Exception {
43: super .setUp();
44: }
45:
46: public void tearDown() throws Exception {
47: super .tearDown();
48: }
49:
50: public void testWebappEndpointAlone() throws Exception {
51: // TODO use Cmd to test WsGen call
52: //String[] args = new String[] {"-help"};
53: //WsGen.main(args);
54: }
55:
56: public void testWsClientEjb() throws Exception {
57: // TODO use Cmd to test WsGen call
58: //String[] args = new String[] {"-help"};
59: //WsGen.main(args);
60: }
61:
62: public void testTimeEndpoint() throws Exception {
63: // TODO use Cmd to test WsGen call
64: //String[] args = new String[] {"-help"};
65: //WsGen.main(args);
66: }
67:
68: public static void main(String args[]) {
69: String testtorun = null;
70: // Get args
71: for (int argn = 0; argn < args.length; argn++) {
72: String s_arg = args[argn];
73: if (s_arg.equals("-n")) {
74: testtorun = args[++argn];
75: }
76: }
77: if (testtorun == null) {
78: junit.textui.TestRunner.run(suite());
79: } else {
80: junit.textui.TestRunner.run(new F_Generate(testtorun));
81: }
82: }
83:
84: }
|