org.cdlib.xtf.dynaXML.test
Class SearchTest

Object
  extended by SearchTest
Direct Known Subclasses:
CDLSearchTest

public class SearchTest
extends Object

This class is used to perform an end-to-end test of the LazyTree/SearchTree system.

Author:
Martin Haye

Field Summary
protected  String baseDir
          Base directory for relative file paths
protected  TestableDynaXML dynaXML
          The servlet used in the test
 
Constructor Summary
SearchTest(String baseDir)
          Default constructor
 
Method Summary
static void randomizeArray(Object[] array)
          Randomly re-orders the elements of an array.
 String runDynaXML(String url)
          Run a request through DynaXML
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dynaXML

protected TestableDynaXML dynaXML
The servlet used in the test


baseDir

protected String baseDir
Base directory for relative file paths

Constructor Detail

SearchTest

public SearchTest(String baseDir)
           throws ServletException
Default constructor

Parameters:
baseDir - The directory that the servlet normally calls home.
Throws:
ServletException
Method Detail

randomizeArray

public static void randomizeArray(Object[] array)
Randomly re-orders the elements of an array.


runDynaXML

public String runDynaXML(String url)
                  throws IOException,
                         ServletException
Run a request through DynaXML

Throws:
IOException
ServletException