Algernon Software

org.algernon.test
Class MiscellanyTest

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

public class MiscellanyTest
extends Object

Tests miscellaneous functionality of Algernon. Example:

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

See Also:
Algernon

Field Summary
protected  String ask_testFile
           
protected  String bind_testFile
           
protected  String count_testFile
           
protected  String date_testFile
           
protected  String limit_testFile
           
protected  Algernon m_algy
           
protected  String m_defaultProject
           
protected  AlgernonKB m_kb
           
protected  String neq_testFile
           
protected  String or_testFile
           
 
Constructor Summary
MiscellanyTest()
           
 
Method Summary
static Object date1()
           
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.
protected  void test(String command, String testFile)
           
 
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_defaultProject

protected String m_defaultProject

ask_testFile

protected String ask_testFile

bind_testFile

protected String bind_testFile

count_testFile

protected String count_testFile

date_testFile

protected String date_testFile

limit_testFile

protected String limit_testFile

neq_testFile

protected String neq_testFile

or_testFile

protected String or_testFile
Constructor Detail

MiscellanyTest

public MiscellanyTest()
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.


test

protected void test(String command,
                    String testFile)

date1

public static Object date1()

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.


Algernon Software