1 package org.controlhaus.xfire.client;
2
3 import java.io.File;
4
5 import junit.framework.TestCase;
6
7 import org.codehaus.xfire.xmlbeans.generator.GeneratorTask;
8
9
10 /***
11 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
12 * @since Oct 27, 2004
13 */
14 public class GeneratorTest
15 extends TestCase
16 {
17 public void testGeneration() throws Exception
18 {
19 File weather = new File("src/test-schemas/WeatherForecast.wsdl");
20
21 GeneratorTask task = new GeneratorTask();
22
23 task.setStrategy(BeehiveClientStrategy.class.getName());
24 task.setWsdl(weather.toURL().toString());
25 task.setOverwrite(true);
26 File output = new File("target/generated-test");
27 output.mkdir();
28
29 task.setOutputDir( output.getAbsolutePath() );
30
31 task.execute();
32 }
33 }