KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > saaj > PackageTests


1 package test.saaj;
2
3 /**
4  * SAAJ PackageTests tests
5  */

6 public class PackageTests extends junit.framework.TestCase {
7     public PackageTests(String JavaDoc name) {
8         super(name);
9     }
10
11     public static junit.framework.Test suite() throws Exception JavaDoc {
12         junit.framework.TestSuite suite = new junit.framework.TestSuite();
13         // Attachments service test.
14
try{
15           if( null != org.apache.axis.utils.ClassUtils.forName("javax.activation.DataHandler") &&
16               null != org.apache.axis.utils.ClassUtils.forName("javax.mail.internet.MimeMultipart")){
17                 suite.addTestSuite(test.saaj.TestAttachment.class);
18                 suite.addTestSuite(test.saaj.TestAttachmentSerialization.class);
19           }
20         }catch( Throwable JavaDoc t){;}
21         suite.addTestSuite(test.saaj.TestEnvelope.class);
22         suite.addTestSuite(test.saaj.TestImport.class);
23         suite.addTestSuite(test.saaj.TestSOAPFaultDetail.class);
24         suite.addTestSuite(test.saaj.TestHeaders.class);
25         suite.addTestSuite(test.saaj.TestPrefixes.class);
26         suite.addTestSuite(test.saaj.TestSOAPFaults.class);
27         suite.addTestSuite(test.saaj.TestDOM.class);
28         suite.addTestSuite(test.saaj.TestSOAPElement.class);
29         suite.addTestSuite(test.saaj.TestText.class);
30         suite.addTestSuite(test.saaj.TestMessageProperty.class);
31         return suite;
32     }
33 }
34
35
Popular Tags