1 7 8 package org.apache.axis.wsi.scm.logging; 9 10 public class LoggingFacilityServiceTestCase extends junit.framework.TestCase { 11 public LoggingFacilityServiceTestCase(java.lang.String name) { 12 super(name); 13 } 14 15 23 24 public void test1LoggingFacilityPortLogEvent() throws Exception { 25 org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub binding; 26 try { 27 binding = (org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub) 28 new org.apache.axis.wsi.scm.logging.LoggingFacilityServiceLocator().getLoggingFacilityPort(); 29 } 30 catch (javax.xml.rpc.ServiceException jre) { 31 if(jre.getLinkedCause()!=null) 32 jre.getLinkedCause().printStackTrace(); 33 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 34 } 35 assertNotNull("binding is null", binding); 36 37 binding.setTimeout(60000); 39 40 binding.logEvent(new org.apache.axis.wsi.scm.logging.LogEventRequestType()); 42 } 44 45 public void test2LoggingFacilityPortGetEvents() throws Exception { 46 org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub binding; 47 try { 48 binding = (org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub) 49 new org.apache.axis.wsi.scm.logging.LoggingFacilityServiceLocator().getLoggingFacilityPort(); 50 } 51 catch (javax.xml.rpc.ServiceException jre) { 52 if(jre.getLinkedCause()!=null) 53 jre.getLinkedCause().printStackTrace(); 54 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 55 } 56 assertNotNull("binding is null", binding); 57 58 binding.setTimeout(60000); 60 61 try { 63 org.apache.axis.wsi.scm.logging.GetEventsResponseType value = null; 64 value = binding.getEvents(new org.apache.axis.wsi.scm.logging.GetEventsRequestType()); 65 } 66 catch (org.apache.axis.wsi.scm.logging.GetEventsFaultType e1) { 67 throw new junit.framework.AssertionFailedError("RepositoryMissingFault Exception caught: " + e1); 68 } 69 } 71 72 } 73 | Popular Tags |