pk.edu.niit.clarens.test
Class SystemMethodTest

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

public class SystemMethodTest
extends ClarensTestCase

Tests of the "system.*" xmlrpc methods.

See Also:
ClarensServer

Field Summary
 
Fields inherited from class pk.edu.niit.clarens.test.ClarensTestCase
client, clientCertFile, clientKeyFile, serverUrl
 
Constructor Summary
SystemMethodTest(java.lang.String s)
          Create a named test case.
 
Method Summary
protected  void setUp()
          Set up for the unit tests.
static junit.framework.Test suite()
          Create a test suite from the individual unit tests.
protected  void tearDown()
          Cleanup after a unit test has run.
 void testAuth()
          Test the system.auth method.
 void testAuth2()
          Test the system.auth2 method.
 void testSetup()
          Basic xmlrpc connection test.
 
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

SystemMethodTest

public SystemMethodTest(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.


tearDown

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


testSetup

public void testSetup()
Basic xmlrpc connection test. Make sure we can connect to the xmlrpc server.


testAuth

public void testAuth()
Test the system.auth method.


testAuth2

public void testAuth2()
Test the system.auth2 method.


suite

public static junit.framework.Test suite()
Create a test suite from the individual unit tests.