| 1 |
package com.github.davidmoten.jaxws; |
| 2 |
|
| 3 |
import static org.junit.Assert.assertTrue; |
| 4 |
|
| 5 |
import java.io.File; |
| 6 |
|
| 7 |
import org.junit.Test; |
| 8 |
|
| 9 |
public class JaxwsMavenPluginTest { |
| 10 |
|
| 11 |
@Test |
| 12 |
public void testWsImportGeneratedFilesExist() { |
| 13 |
assertTrue(new File("target/generated-sources/jaxws/com/examples/wsdl/helloservice/HelloService.java").exists()); |
| 14 |
assertTrue(new File("target/generated-classes/jaxws/com/examples/wsdl/helloservice/HelloService.class").exists()); |
| 15 |
} |
| 16 |
|
| 17 |
@Test |
| 18 |
public void testWsImportGeneratedSourcesOnClasspath() throws ClassNotFoundException { |
| 19 |
Class.forName("com.examples.wsdl.helloservice.HelloService"); |
| 20 |
} |
| 21 |
|
| 22 |
@Test |
| 23 |
public void testWsGenGeneratedSourcesOnClasspath() throws ClassNotFoundException { |
| 24 |
Class.forName("com.github.davidmoten.jaxws.jaxws.GetIpAddress"); |
| 25 |
} |
| 26 |
|
| 27 |
} |