dims 2002/06/24 03:43:40
Modified: java/test/saaj PackageTests.java
Log:
Run TestAttachment only if relevant classes are present.
Revision Changes Path
1.2 +7 -1 xml-axis/java/test/saaj/PackageTests.java
Index: PackageTests.java
===================================================================
RCS file: /home/cvs/xml-axis/java/test/saaj/PackageTests.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PackageTests.java 23 Jun 2002 22:08:10 -0000 1.1
+++ PackageTests.java 24 Jun 2002 10:43:40 -0000 1.2
@@ -10,7 +10,13 @@
public static junit.framework.Test suite() throws Exception {
junit.framework.TestSuite suite = new junit.framework.TestSuite();
- suite.addTestSuite(test.saaj.TestAttachment.class);
+ // Attachments service test.
+ try{
+ if( null !=
org.apache.axis.utils.ClassUtils.forName("javax.activation.DataHandler") &&
+ null !=
org.apache.axis.utils.ClassUtils.forName("javax.mail.internet.MimeMultipart")){
+ suite.addTestSuite(test.saaj.TestAttachment.class);
+ }
+ }catch( Throwable t){;}
return suite;
}
}