Algernon Software

org.algernon.test
Class SpecialTest

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

public class SpecialTest
extends Object

Tests basic execution functionality of Algernon. Does not test the compiler. Example:

 java -classpath ${CLASSES}:${PHARMGEN}/lib/protege.jar:${PHARMGEN}/lib/ojdbc14.jar org.algernon.test.PharmGKBTest1
 

See Also:
Algernon

Field Summary
protected  Algernon m_algy
           
protected  String m_defaultProject
           
protected  AlgernonKB m_kb
           
protected  Jatha m_lisp
           
 
Constructor Summary
SpecialTest()
           
 
Method Summary
static long getCurrentTime()
          Returns the current time in milliseconds.
static long getElapsedTime(long startTime)
          Returns the elapsed time since the startTime in milliseconds.
 void init()
          Reads in the parameters and tries to open the KB.
static void main(String[] args)
           
 void start()
          Executes some small code snippets.
 void stop()
          Halts the program nicely.
 void testBad()
          Tests bad forms of the :TEST operator.
protected  void testEval()
           
protected  void testFail()
           
static Boolean testFunction0()
           
static Boolean testFunction1(String arg)
           
static void testFunction1WithPrint()
           
static Boolean testFunction2(Long arg1, Long arg2)
           
static void testFunction2WithPrint()
           
static Boolean testFunction3(Long arg1, Long arg2, Long arg3)
           
protected  void testInstance()
           
protected  void testJavaEval()
           
protected  void testJavaTest()
           
protected  void testLispEval()
           
protected  void testLispTest()
           
protected  void testShellEval()
           
protected  void testShellTest()
           
protected  void testTest()
           
protected  void testTrace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_kb

protected AlgernonKB m_kb

m_algy

protected Algernon m_algy

m_lisp

protected Jatha m_lisp

m_defaultProject

protected String m_defaultProject
Constructor Detail

SpecialTest

public SpecialTest()
Method Detail

main

public static void main(String[] args)

init

public void init()
Reads in the parameters and tries to open the KB.


stop

public void stop()
Halts the program nicely.


start

public void start()
Executes some small code snippets.


testInstance

protected void testInstance()

testFail

protected void testFail()

testEval

protected void testEval()

testTest

protected void testTest()

testFunction0

public static Boolean testFunction0()

testFunction1

public static Boolean testFunction1(String arg)

testFunction2

public static Boolean testFunction2(Long arg1,
                                    Long arg2)

testFunction3

public static Boolean testFunction3(Long arg1,
                                    Long arg2,
                                    Long arg3)

testFunction1WithPrint

public static void testFunction1WithPrint()

testFunction2WithPrint

public static void testFunction2WithPrint()

testJavaTest

protected void testJavaTest()

testLispTest

protected void testLispTest()

testShellTest

protected void testShellTest()

testTrace

protected void testTrace()

getCurrentTime

public static long getCurrentTime()
Returns the current time in milliseconds. Useful for timing method calls.


getElapsedTime

public static long getElapsedTime(long startTime)
Returns the elapsed time since the startTime in milliseconds. Useful for timing method calls.


testBad

public void testBad()
Tests bad forms of the :TEST operator.


testJavaEval

protected void testJavaEval()

testLispEval

protected void testLispEval()

testShellEval

protected void testShellEval()

Algernon Software