KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > tools > JavaToWSDLTest


1 package org.objectweb.celtix.tools;
2
3 import org.objectweb.celtix.tools.common.ToolTestBase;
4
5 public class JavaToWSDLTest extends ToolTestBase {
6
7     public void testVersionOutput() throws Exception JavaDoc {
8         String JavaDoc[] args = new String JavaDoc[] {"-v"};
9         JavaToWSDL.main(args);
10         assertNotNull(getStdOut());
11     }
12
13     public void testHelpOutput() {
14         String JavaDoc[] args = new String JavaDoc[] {"-help"};
15         JavaToWSDL.main(args);
16         assertNotNull(getStdOut());
17     }
18
19     public void testNormalArgs() {
20         String JavaDoc[] args = new String JavaDoc[] {"-o", "./test.wsdl", "org.objectweb.hello_world_soap_http.Greeter"};
21         JavaToWSDL.main(args);
22         assertNotNull(getStdOut());
23     }
24
25     public void testBadUsage() {
26         String JavaDoc[] args = new String JavaDoc[] {"-ttt", "a.ww"};
27         JavaToWSDL.main(args);
28         assertNotNull(getStdOut());
29
30     }
31
32     public void testValidArgs() {
33         String JavaDoc[] args = new String JavaDoc[] {"a.ww"};
34         JavaToWSDL.main(args);
35         assertNotNull(getStdOut());
36
37     }
38
39     public void testNoOutPutFile() {
40         String JavaDoc[] args = new String JavaDoc[] {"org.objectweb.hello_world_soap_http.Greeter"};
41         JavaToWSDL.main(args);
42         assertNotNull(getStdOut());
43     }
44
45 }
46
Popular Tags