All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.test.BaseTest

java.lang.Object
   |
   +----cryptix.test.BaseTest

public abstract class BaseTest
extends Object
This abstract class acts as a base for all Cryptix test classes. Its purpose is to provide a framework that will allow us to easily add new testing features (for example, repeating tests that have failed at a higher debugging level, or testing as an applet).

Test classes should be non-public wherever possible, in order to reduce the risk of security bugs in test code being exploited.

Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.8 $

Author:
David Hopwood

Variable Index

 o expectedPasses
 o failures
 o out
The PrintWriter to which output is to be sent.
 o passes

Constructor Index

 o BaseTest()

Method Index

 o commandline(String[])
 o engineTest()
 o fail(String)
 o pass(String)
 o passIf(boolean, String)
 o report()
 o setExpectedPasses(int)
 o setOutput(PrintWriter)
 o test()

Variables

 o out
 protected PrintWriter out
The PrintWriter to which output is to be sent.

 o failures
 protected int failures
 o passes
 protected int passes
 o expectedPasses
 protected int expectedPasses

Constructors

 o BaseTest
 protected BaseTest()

Methods

 o commandline
 protected void commandline(String args[])
 o setOutput
 protected void setOutput(PrintWriter output)
 o test
 protected void test() throws TestException
 o fail
 protected void fail(String msg)
 o pass
 protected void pass(String msg)
 o passIf
 protected void passIf(boolean pass,
                       String msg)
 o setExpectedPasses
 protected void setExpectedPasses(int n)
 o report
 protected void report()
 o engineTest
 protected abstract void engineTest() throws Exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index