Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

samples.echo
Class TestClient  view TestClient download TestClient.java

java.lang.Object
  extended bysamples.echo.TestClient

public abstract class TestClient
extends java.lang.Object

Test Client for the echo interop service. See the main entrypoint for more details on usage.


Field Summary
private static InteropTestPortType binding
           
private  boolean testMode
          When testMode is true, we throw exceptions up to the caller instead of recording them and continuing.
 
Constructor Summary
TestClient()
           
TestClient(boolean testMode)
          Constructor which sets testMode
 
Method Summary
protected  boolean equals(java.lang.Object obj1, java.lang.Object obj2)
          Determine if two objects are equal.
 void execute2A()
          Execute the 2A tests
 void execute2B()
          Execute the 2B tests
 void executeAll()
          Execute all tests.
 void executeAxisXSD()
          Test custom mapping of xsd types not standardized: xsd:token and xsd:normalizedString.
static void main(java.lang.String[] args)
          Main entry point.
(package private)  void setPassword(java.lang.String password)
           
 void setURL(java.lang.String url)
          Set up the call object.
(package private)  void setUser(java.lang.String user)
           
protected abstract  void verify(java.lang.String method, java.lang.Object sent, java.lang.Object gotBack)
          Verify that the object sent was, indeed, the one you got back.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

binding

private static InteropTestPortType binding

testMode

private boolean testMode
When testMode is true, we throw exceptions up to the caller instead of recording them and continuing.

Constructor Detail

TestClient

public TestClient()

TestClient

public TestClient(boolean testMode)
Constructor which sets testMode

Method Detail

equals

protected boolean equals(java.lang.Object obj1,
                         java.lang.Object obj2)
Determine if two objects are equal. Handles nulls and recursively verifies arrays are equal. Accepts dates within a tolerance of 999 milliseconds.


setURL

public void setURL(java.lang.String url)
            throws org.apache.axis.AxisFault
Set up the call object.


setUser

void setUser(java.lang.String user)

setPassword

void setPassword(java.lang.String password)

executeAll

public void executeAll()
                throws java.lang.Exception
Execute all tests.


executeAxisXSD

public void executeAxisXSD()
                    throws java.lang.Exception
Test custom mapping of xsd types not standardized: xsd:token and xsd:normalizedString.


execute2A

public void execute2A()
               throws java.lang.Exception
Execute the 2A tests


execute2B

public void execute2B()
               throws java.lang.Exception
Execute the 2B tests


verify

protected abstract void verify(java.lang.String method,
                               java.lang.Object sent,
                               java.lang.Object gotBack)
Verify that the object sent was, indeed, the one you got back. Subclasses are sent to override this with their own output.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main entry point. Tests a variety of echo methods and reports on their results. Arguments are of the form: -h localhost -p 8080 -s /soap/servlet/rpcrouter -h indicats the host