pk.edu.niit.clarens.test
Class ClarensTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bypk.edu.niit.clarens.test.ClarensTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
EchoMethodTest, FileMethodTest, SystemMethodTest

public class ClarensTestCase
extends junit.framework.TestCase

Common test requirements for all clarens tests are satisfied here. This class sets up the server url and client certificate/key from system properties, and provides defaults if not set. This ensures that the same settings are used for all of the unit tests.


Field Summary
protected  ClarensClient client
           
protected  java.lang.String clientCertFile
           
protected  java.lang.String clientKeyFile
           
protected  java.lang.String serverUrl
           
 
Constructor Summary
ClarensTestCase(java.lang.String s)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, 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
 

Field Detail

serverUrl

protected java.lang.String serverUrl

clientCertFile

protected java.lang.String clientCertFile

clientKeyFile

protected java.lang.String clientKeyFile

client

protected ClarensClient client
Constructor Detail

ClarensTestCase

public ClarensTestCase(java.lang.String s)