use of org.apache.cxf.tools.java2ws.JavaToWS in project cxf by apache.
the class JavaToWSFlagTest method testHelpOutput.
@Test
public void testHelpOutput() {
String[] args = new String[] { "-help" };
CommandInterfaceUtils.commandCommonMain();
JavaToWS j2w = new JavaToWS(args);
try {
j2w.run();
} catch (Throwable ex) {
System.err.println("JavaToWS Error: " + ex.toString());
System.err.println();
}
assertNotNull(getStdOut());
}
use of org.apache.cxf.tools.java2ws.JavaToWS in project cxf by apache.
the class JavaToWSFlagTest method testNoOutPutFile.
@Test
public void testNoOutPutFile() throws Exception {
String[] args = new String[] { "-o", getLocation("nooutput.wsdl"), "org.apache.hello_world_soap_http.Greeter" };
CommandInterfaceUtils.commandCommonMain();
JavaToWS j2w = new JavaToWS(args);
try {
j2w.run();
} catch (Throwable ex) {
System.err.println("JavaToWS Error: " + ex.toString());
System.err.println();
}
assertNotNull(getStdOut());
}
use of org.apache.cxf.tools.java2ws.JavaToWS in project cxf by apache.
the class JavaToWSFlagTest method testVersionOutput.
@Test
public void testVersionOutput() throws Exception {
String[] args = new String[] { "-v" };
CommandInterfaceUtils.commandCommonMain();
JavaToWS j2w = new JavaToWS(args);
try {
j2w.run();
} catch (Throwable ex) {
System.err.println("JavaToWS Error: " + ex.toString());
System.err.println();
}
assertNotNull(getStdOut());
}
use of org.apache.cxf.tools.java2ws.JavaToWS in project cxf by apache.
the class JavaToWSFlagTest method testBadUsage.
@Test
public void testBadUsage() {
String[] args = new String[] { "-ttt", "a.ww" };
CommandInterfaceUtils.commandCommonMain();
JavaToWS j2w = new JavaToWS(args);
try {
j2w.run();
} catch (Throwable ex) {
System.err.println("JavaToWS Error: " + ex.toString());
System.err.println();
}
assertNotNull(getStdOut());
}
use of org.apache.cxf.tools.java2ws.JavaToWS in project cxf by apache.
the class JavaToWSFlagTest method testNormalArgs.
@Test
public void testNormalArgs() throws Exception {
System.err.println(getLocation("test.wsdl"));
String[] args = new String[] { "-o", getLocation("normal.wsdl"), "org.apache.hello_world_soap_http.Greeter" };
CommandInterfaceUtils.commandCommonMain();
JavaToWS j2w = new JavaToWS(args);
try {
j2w.run();
} catch (Throwable ex) {
System.err.println("JavaToWS Error: " + ex.toString());
System.err.println();
}
assertNotNull(getStdOut());
}
Aggregations