FileDocCategorySizeDatePackage
TestFaultsSample.javaAPI DocApache Axis 1.42309Sat Apr 22 18:57:28 BST 2006test.functional

TestFaultsSample

public class TestFaultsSample extends TestCase
Test the faults sample code.

Fields Summary
static Log
log
Constructors Summary
public TestFaultsSample(String name)


       
        super(name);
    
Methods Summary
public voiddoTest1()

        String[] args = { "#001" };
        EmployeeClient.main(args);
    
public voiddoTest2()

        String[] args = { "#002" };
        try {
            EmployeeClient.main(args);
        } catch (samples.faults.NoSuchEmployeeFault nsef) {
            return;
        }
        fail("Should not reach here");
    
public voiddoTestDeploy()

        String[] args = { "samples/faults/deploy.wsdd" };
        AdminClient.main(args);
    
public static voidmain(java.lang.String[] args)

        TestFaultsSample tester = new TestFaultsSample("test");
        tester.testFaultsService();
    
public voidtestFaultsService()

        try {
            log.info("Testing faults sample.");
            log.info("Testing deployment...");
            doTestDeploy();
            log.info("Testing service...");
            doTest1();
            doTest2();
            log.info("Test complete.");
        }
        catch( Exception e ) {
            e.printStackTrace();
            throw new Exception("Fault returned from test: "+e);
        }