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 { 8 String [] args = new String [] {"-v"}; 9 JavaToWSDL.main(args); 10 assertNotNull(getStdOut()); 11 } 12 13 public void testHelpOutput() { 14 String [] args = new String [] {"-help"}; 15 JavaToWSDL.main(args); 16 assertNotNull(getStdOut()); 17 } 18 19 public void testNormalArgs() { 20 String [] args = new String [] {"-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 [] args = new String [] {"-ttt", "a.ww"}; 27 JavaToWSDL.main(args); 28 assertNotNull(getStdOut()); 29 30 } 31 32 public void testValidArgs() { 33 String [] args = new String [] {"a.ww"}; 34 JavaToWSDL.main(args); 35 assertNotNull(getStdOut()); 36 37 } 38 39 public void testNoOutPutFile() { 40 String [] args = new String [] {"org.objectweb.hello_world_soap_http.Greeter"}; 41 JavaToWSDL.main(args); 42 assertNotNull(getStdOut()); 43 } 44 45 } 46 | Popular Tags |