FileDocCategorySizeDatePackage
TestServiceDesc.javaAPI DocApache Axis 1.42203Sat Apr 22 18:57:26 BST 2006test.servicedesc

TestServiceDesc

public class TestServiceDesc extends junit.framework.TestCase

Fields Summary
Constructors Summary
public TestServiceDesc(String name)

        super(name);
    
public TestServiceDesc()

        super("Test ServiceDesc Synch");
    
Methods Summary
public voidtestFaultSynch()

        JavaServiceDesc desc = new JavaServiceDesc();
        desc.setTypeMapping(DefaultTypeMappingImpl.getSingletonDelegate());

        desc.loadServiceDescByIntrospection(ServiceClass.class);

        List operations = desc.getOperations();

        assertTrue(operations != null);
        assertEquals("invalid number of registered operations",
                     2, operations.size());
        
        OperationDesc operation;
        List faults;

        operation = (OperationDesc)operations.get(0);
        assertEquals("doIt1", operation.getName());

        faults = operation.getFaults();

        assertTrue(faults != null);
        assertEquals("invalid number of registered faults", 
                     2, faults.size());

        operation = (OperationDesc)operations.get(1);
        assertEquals("doIt2", operation.getName());

        faults = operation.getFaults();

        assertTrue(faults != null);
        assertEquals("invalid number of registered faults", 
                     2, faults.size());