KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > opStylesDoc > VerifyTestCase


1 package test.wsdl.opStylesDoc;
2
3 import junit.framework.AssertionFailedError;
4 import junit.framework.TestCase;
5
6 import javax.xml.rpc.ServiceException JavaDoc;
7 import javax.xml.rpc.Stub JavaDoc;
8 import java.rmi.RemoteException JavaDoc;
9
10 public class VerifyTestCase extends junit.framework.TestCase {
11     public VerifyTestCase(String JavaDoc name) {
12         super(name);
13     }
14
15     public void testOpStyles() throws Exception JavaDoc {
16         OpStyles binding;
17         try {
18             binding = new OpStyleDocServiceLocator().getOpStylesDoc();
19         }
20         catch (ServiceException JavaDoc jre) {
21             throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
22         }
23
24         binding.requestResponse();
25         binding.requestResponse2();
26         binding.requestResponse3(null);
27
28    } // testOpStyles
29
} // class VerifyTestCase
30
Popular Tags