pk.edu.niit.clarens.test
Class FileMethodTest

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

public class FileMethodTest
extends ClarensTestCase

Tests of the "file.*" xmlrpc methods.

See Also:
FileMethods

Field Summary
 
Fields inherited from class pk.edu.niit.clarens.test.ClarensTestCase
client, clientCertFile, clientKeyFile, serverUrl
 
Constructor Summary
FileMethodTest(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 testLsDotGlobPattern()
          Test the file.ls method with a glob pattern.
 void testLsGlobDotGlobPattern()
          Test the file.ls method with a glob pattern.
 void testLsGlobPattern()
          Test the file.ls method with a glob pattern.
 void testLsNoPattern()
          Test the file.ls method with a glob pattern.
 void testReadPerformance()
          Test the file.read method with a simple small file.
 void testSimpleRead()
          Test the file.read method with a simple small file.
 
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

FileMethodTest

public FileMethodTest(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. Temporary files and directories are deleted and the xmlrpc connection is thrown away.


testLsNoPattern

public void testLsNoPattern()
Test the file.ls method with a glob pattern. An empty glob pattern "" is used.


testLsGlobPattern

public void testLsGlobPattern()
Test the file.ls method with a glob pattern. A simple glob pattern "*" is used.


testLsDotGlobPattern

public void testLsDotGlobPattern()
Test the file.ls method with a glob pattern. A glob pattern of ".*" is used.


testLsGlobDotGlobPattern

public void testLsGlobDotGlobPattern()
Test the file.ls method with a glob pattern. A glob pattern of "*.*" is used.


testSimpleRead

public void testSimpleRead()
Test the file.read method with a simple small file.


testReadPerformance

public void testReadPerformance()
Test the file.read method with a simple small file.


suite

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