Algernon Software

org.algernon.test
Class SubclassInclusive

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

public class SubclassInclusive
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
SubclassInclusive()
           
 
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

SubclassInclusive

public SubclassInclusive()
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