Algernon Software

org.algernon.test
Class MultipleAlgernonObjTestCase

java.lang.Object
  extended byorg.algernon.test.MultipleAlgernonObjTestCase

public class MultipleAlgernonObjTestCase
extends Object

Tests whether Algernon works correctly when initialized several times from the same program. Contributed by Nick Green (Nick.Green@sas.com) 29 Sep 2003


Constructor Summary
MultipleAlgernonObjTestCase()
           
 
Method Summary
 LispValue ask(String command, Algernon algernon)
          Receives commands strings.
static void main(String[] args)
           
 Algernon makeAlgernon(String PROJECT_FILE_NAME)
          Creates an instance that can be returned by the pool.
 void runTest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleAlgernonObjTestCase

public MultipleAlgernonObjTestCase()
Method Detail

main

public static void main(String[] args)

runTest

public void runTest()

makeAlgernon

public Algernon makeAlgernon(String PROJECT_FILE_NAME)
Creates an instance that can be returned by the pool.

Returns:
an Algernon instance that can be returned by the pool.

ask

public LispValue ask(String command,
                     Algernon algernon)
              throws Exception

Receives commands strings. Makes a query and returns the response. Displays any query errors and throws an exception.

Utility method

Parameters:
command - - Query command.
algernon - - An instance of the Algernon query interface class.
Returns:
LispValue - Algernon query response object.
Throws:
Exception - - Error

Algernon Software