FileDocCategorySizeDatePackage
TestJAXRPCSamples.javaAPI DocApache Axis 1.43824Sat Apr 22 18:57:26 BST 2006test.functional

TestJAXRPCSamples

public class TestJAXRPCSamples extends TestCase
Test the JAX-RPC compliance samples.

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


       
        super(name);
    
Methods Summary
public voiddoTestDeploy()

        String[] args = {"samples/stock/deploy.wsdd"};
        AdminClient.main(args);
    
public voiddoTestGetQuoteMain()

        String[] args = {"-uuser1", "-wpass1", "XXX"};
        GetQuote1.main(args);
    
public voiddoTestGetQuoteXXX()

        String[] args = {"-uuser1", "-wpass1", "XXX"};
        float val = new GetQuote1().getQuote1(args);
        assertEquals("Stock price is not the expected 55.25 +/- 0.01", val,
                55.25, 0.01);
    
public voiddoTestUndeploy()

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

        TestJAXRPCSamples tester = new TestJAXRPCSamples("tester");
        tester.testHello();
        tester.testAddress();
    
public voidtestAddress()

        log.info("Testing JAX-RPC Address sample.");
        samples.jaxrpc.address.AddressClient.main(new String[]{});
        log.info("Test complete.");
    
public voidtestGetInfo()

        log.info("Testing JAX-RPC GetInfo sample.");
        log.info("Testing deployment...");
        doTestDeploy();
        log.info("Testing service...");
        String[] args = {"-uuser3", "-wpass3", "IBM", "symbol"};
        GetInfo.main(args);
        args = new String[] {"-uuser3", "-wpass3", "MACR", "name"};
        GetInfo.main(args);
        args = new String[] {"-uuser3", "-wpass3", "CSCO", "address"};
        GetInfo.main(args);
        log.info("Testing undeployment...");
        doTestUndeploy();
        log.info("Test complete.");
    
public voidtestHello()

        log.info("Testing JAX-RPC hello sample.");
        samples.jaxrpc.hello.HelloClient.main(new String[]{});
        log.info("Test complete.");