Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

basicrunner
Class BasicTestCase

java.lang.Object
  |
  +--lib.TestCase
        |
        +--basicrunner.BasicTestCase

public class BasicTestCase
extends TestCase

The basic test case.


Field Summary
protected  String implName
          The implementation name of the test object
protected  String objName
          The name of the test object
 PrintWriter oLog
          Specifies the PrintWriter to log information.
 
Fields inherited from class lib.TestCase
log
 
Constructor Summary
BasicTestCase(DescEntry entry)
          Constructor with the entry which is to test.
 
Method Summary
 void cleanupTestCase(TestParameters tParam)
          BASIC is told to dispose the test object.
protected  void cleanupTestEnvironment(TestParameters tParam, TestEnvironment tEnv, LogWriter log)
           
protected  TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log)
          Create the environment for the test.
protected  void initialize(TestParameters tParam, PrintWriter pLog)
          Initialize the test case.
 
Methods inherited from class lib.TestCase
cleanup, cleanupTestEnvironment, disposeTestEnvironment, getObjectName, getTestEnvironment, initializeTestCase, setLogWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oLog

public PrintWriter oLog
Specifies the PrintWriter to log information.

objName

protected String objName
The name of the test object

implName

protected String implName
The implementation name of the test object
Constructor Detail

BasicTestCase

public BasicTestCase(DescEntry entry)
Constructor with the entry which is to test.
Parameters:
entry - The description entry.
Method Detail

initialize

protected void initialize(TestParameters tParam,
                          PrintWriter pLog)
Initialize the test case. The BasicHandler is talken from the test parameters and several parameters are initialized.
Overrides:
initialize in class TestCase
Parameters:
tParam - The test parameters.
pLog - A log writer.

createTestEnvironment

protected TestEnvironment createTestEnvironment(TestParameters tParam,
                                                PrintWriter log)
Create the environment for the test. This is done by BASIC.
Overrides:
createTestEnvironment in class TestCase
Parameters:
tParam - The test parameters.
log - A log writer.
Returns:
The test environment

cleanupTestEnvironment

protected void cleanupTestEnvironment(TestParameters tParam,
                                      TestEnvironment tEnv,
                                      LogWriter log)

cleanupTestCase

public void cleanupTestCase(TestParameters tParam)
BASIC is told to dispose the test object.
Overrides:
cleanupTestCase in class TestCase
Parameters:
tParam - The test parameters.

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.