FileDocCategorySizeDatePackage
LoggingFacilityServiceTestCase.javaAPI DocApache Axis 1.43112Sat Apr 22 18:56:52 BST 2006org.apache.axis.wsi.scm.logging

LoggingFacilityServiceTestCase

public class LoggingFacilityServiceTestCase extends TestCase
LoggingFacilityServiceTestCase.java This file was auto-generated from WSDL by the Apache Axis 1.2alpha Jan 15, 2004 (11:28:11 EST) WSDL2Java emitter.

Fields Summary
Constructors Summary
public LoggingFacilityServiceTestCase(String name)

        super(name);
    
Methods Summary
public voidtest1LoggingFacilityPortLogEvent()

        org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub binding;
        try {
            binding = (org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub)
                          new org.apache.axis.wsi.scm.logging.LoggingFacilityServiceLocator().getLoggingFacilityPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        binding.logEvent(new org.apache.axis.wsi.scm.logging.LogEventRequestType());
        // TBD - validate results
    
public voidtest2LoggingFacilityPortGetEvents()

        org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub binding;
        try {
            binding = (org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub)
                          new org.apache.axis.wsi.scm.logging.LoggingFacilityServiceLocator().getLoggingFacilityPort();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        try {
            org.apache.axis.wsi.scm.logging.GetEventsResponseType value = null;
            value = binding.getEvents(new org.apache.axis.wsi.scm.logging.GetEventsRequestType());
        }
        catch (org.apache.axis.wsi.scm.logging.GetEventsFaultType e1) {
            throw new junit.framework.AssertionFailedError("RepositoryMissingFault Exception caught: " + e1);
        }
            // TBD - validate results