Jetif v1.8.0

jetif
Class Recorder

java.lang.Object
  extended byjetif.Recorder

Deprecated. This class is too complex and useless, will be removed in next release.

public abstract class Recorder
extends Object

A Recorder persistent the testing result to storage such as file system, database, etc. This class is replaced by the ListenerFactory.

Author:
Vicky Wang

Nested Class Summary
static interface Recorder.Factory
          Deprecated. This class is deprecated along with Recorder class.
 
Field Summary
static String RECORDER_TYPE
          Deprecated. The property name of recorder type property.
 
Constructor Summary
Recorder()
          Deprecated.  
 
Method Summary
abstract  TestListener createListener(String suiteName)
          Deprecated. Create a test listener for specified suite.
static Recorder getInstance()
          Deprecated. Get an instance of configured recorder type.
static Recorder getInstance(String type)
          Deprecated. Get an instance of specified recorder type.
protected static Recorder.Factory register(String type, Recorder.Factory factory)
          Deprecated. Register a recorder factory.
abstract  void summarize()
          Deprecated. Summarize the result when all suites are completed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECORDER_TYPE

public static final String RECORDER_TYPE
Deprecated. 
The property name of recorder type property. It may be "file", "jdbc" or "net" etc. Only the file recorder is implemented yet.

See Also:
Constant Field Values
Constructor Detail

Recorder

public Recorder()
Deprecated. 
Method Detail

getInstance

public static Recorder getInstance()
                            throws FrameworkException
Deprecated. 
Get an instance of configured recorder type.

Returns:
configured recorder instance.
Throws:
FrameworkException

getInstance

public static Recorder getInstance(String type)
                            throws FrameworkException
Deprecated. 
Get an instance of specified recorder type.

Parameters:
type - recorder type, can be "file" yet.
Returns:
the recorder instance.
Throws:
FrameworkException

register

protected static Recorder.Factory register(String type,
                                           Recorder.Factory factory)
Deprecated. 
Register a recorder factory. A recorder implementation should register it self with this method when its class being loaded.

Parameters:
type - the type name of the recorder.
factory - the factory instance.
Returns:
the old instance associate with specified type.

createListener

public abstract TestListener createListener(String suiteName)
                                     throws FrameworkException
Deprecated. 
Create a test listener for specified suite.

Parameters:
suiteName - the name of suite
Returns:
a test listener instance.
Throws:
FrameworkException - if error occurs.

summarize

public abstract void summarize()
Deprecated. 
Summarize the result when all suites are completed. The implemenation may generate a summary for whole testing.


Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.