pk.edu.niit.clarens.test
Class EchoMethodTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bypk.edu.niit.clarens.test.ClarensTestCase
              extended bypk.edu.niit.clarens.test.EchoMethodTest
All Implemented Interfaces:
junit.framework.Test

public class EchoMethodTest
extends ClarensTestCase

Tests of the "echo.*" class of xmlrpc methods.

See Also:
EchoMethod

Field Summary
 
Fields inherited from class pk.edu.niit.clarens.test.ClarensTestCase
client, clientCertFile, clientKeyFile, serverUrl
 
Constructor Summary
EchoMethodTest(java.lang.String s)
          Create a named test case.
 
Method Summary
protected  void setUp()
          Set up for the unit tests.
protected  void tearDown()
          Cleanup after a unit test has run.
 void testEchoPerformance()
          Run a simple performance test against the server to measure how it performs against repeated calls.
 void testHeteroEcho()
          Test the echo method with a variety of argument types.
 void testSimpleEcho()
          Test the echo method with a single integer argument.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EchoMethodTest

public EchoMethodTest(java.lang.String s)
Create a named test case.

Parameters:
s - The name of the test to construct.
Method Detail

setUp

protected void setUp()
Set up for the unit tests. The xmlrpc connection to the remote server is created and the temp file directory is made.


tearDown

protected void tearDown()
Cleanup after a unit test has run. The xmlrpc connection is thrown away.


testSimpleEcho

public void testSimpleEcho()
Test the echo method with a single integer argument.


testHeteroEcho

public void testHeteroEcho()
Test the echo method with a variety of argument types.


testEchoPerformance

public void testEchoPerformance()
Run a simple performance test against the server to measure how it performs against repeated calls. A simple echo.echo method is called 500 times and the results are summarized.