KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > functional > FunctionalTests


1 package test.functional;
2
3 import junit.framework.Test;
4 import junit.framework.TestCase;
5 import junit.framework.TestSuite;
6 import org.apache.axis.utils.ClassUtils;
7
8 /**
9  * Axis's FunctionalTests test client/server interactions.
10  */

11 public class FunctionalTests extends TestCase
12 {
13     public FunctionalTests(String JavaDoc name)
14     {
15         super(name);
16     }
17
18     public static Test suite() throws Exception JavaDoc
19     {
20         TestSuite suite = new TestSuite();
21
22         // Echo test - end to end serialization and deserialization /
23
// interop tests.
24
suite.addTestSuite(TestEchoSample.class);
25
26         // Test the JAX-RPC compliance samples
27
suite.addTestSuite(TestJAXRPCSamples.class);
28
29         // Test the JAXM compliance samples
30
suite.addTestSuite(TestJAXMSamples.class);
31         
32         // stock sample test
33
// run this BEFORE ALL OTHER TESTS to minimize confusion;
34
// this will run the JWS test first, and we want to know that
35
// nothing else has been deployed
36
suite.addTestSuite(TestStockSample.class);
37
38         // JWS global types test (deploys a typeMapping)
39
suite.addTestSuite(TestJWSGlobalTypes.class);
40
41         // TCP transport sample test
42
suite.addTestSuite(TestTCPTransportSample.class);
43         
44         // file transport sample test
45
suite.addTestSuite(TestTransportSample.class);
46
47         // bid-buy test
48
suite.addTestSuite(TestBidBuySample.class);
49
50         // "Raw" echo service test.
51
suite.addTestSuite(TestMiscSample.class);
52
53         // Proxy service test.
54
//suite.addTestSuite(TestProxySample.class);
55

56         // Element service test.
57
suite.addTestSuite(TestElementSample.class);
58
59         // Message service test.
60
suite.addTestSuite(TestMessageSample.class);
61         
62         // test.rpc test
63
suite.addTestSuite(TestIF3SOAP.class);
64         
65         // samples.fault test
66
suite.addTestSuite(TestFaultsSample.class);
67
68         suite.addTestSuite(TestEncoding.class);
69
70         // Attachments service test.
71
try{
72           if( null != ClassUtils.forName("javax.activation.DataHandler") &&
73               null != ClassUtils.forName("javax.mail.internet.MimeMultipart")){
74                 suite.addTestSuite( ClassUtils.forName("test.functional.TestAttachmentsSample"));
75           }
76         }catch( Throwable JavaDoc t){;}
77
78         // MIME headers test.
79
// BROKEN - COMMENTED OUT FOR NOW --gdaniels
80
//suite.addTestSuite(TestMimeHeaders.class);
81

82         suite.addTestSuite(TestAutoTypes.class);
83         
84         return suite;
85     }
86 }
87
Popular Tags