1 16 package samples.swa; 17 18 import junit.framework.TestCase; 19 import org.apache.axis.components.logger.LogFactory; 20 import org.apache.commons.logging.Log; 21 22 25 public class SwaTestCase extends TestCase { 26 27 28 static Log log = LogFactory.getLog(SwaTestCase.class.getName()); 29 30 35 public SwaTestCase(String name) { 36 super(name); 37 } 38 39 44 public void doTest() throws Exception { 45 46 String [] args = { 47 }; 48 49 Tester.main(args); 50 } 51 52 57 public void testSwAService() throws Exception { 58 59 try { 60 log.info("Testing SOAP with Attachements sample."); 61 doTest(); 62 log.info("Test complete."); 63 } catch (Exception e) { 64 e.printStackTrace(); 65 66 throw new Exception ("Fault returned from test: " + e); 67 } 68 } 69 } 70 | Popular Tags |