org.sysunit
Interface TBean

All Known Subinterfaces:
SynchronizableTBean
All Known Implementing Classes:
AbstractSynchronizableTBean, AbstractTBean, ThreadMethodTBean

public interface TBean

A TBean is a testing bean used in a SysUnit TestCase. TBeans are typically remote such as remote MBeans, session beans, use remote proxies or execute remote scripts which make up the whole distributed test case

Version:
$Revision: 1.2 $
Author:
James Strachan, Bob McWhirter

Field Summary
static TBean[] EMPTY_ARRAY
          Empty array.
 
Method Summary
 void assertValid()
          Called after the run() methods of all the TBeans have completed (or timed out) to assert that each TBean is in a valid state
 void run()
          Called in parallel by the SysUnit test case to run the TBean
 void setUp()
          Called before each test run to initialise the TBean
 void tearDown()
          Called after the SysUnit test has run to clean up any resources such as database connections, to close any files etc
 

Field Detail

EMPTY_ARRAY

static final TBean[] EMPTY_ARRAY
Empty array.

Method Detail

setUp

void setUp()
           throws Exception
Called before each test run to initialise the TBean

Throws:
Exception - If an error occurs while attempting to set up the TBean.

run

void run()
         throws Throwable
Called in parallel by the SysUnit test case to run the TBean

Throws:
Throwable - If an error occurs while attempting to run the TBean.

assertValid

void assertValid()
                 throws Exception
Called after the run() methods of all the TBeans have completed (or timed out) to assert that each TBean is in a valid state

Throws:
Exception - If an error occurs while attempting validate the TBean.

tearDown

void tearDown()
              throws Exception
Called after the SysUnit test has run to clean up any resources such as database connections, to close any files etc

Throws:
Exception - If an error occurs while attempting to tear down the TBean.


Copyright © 2003-2009 SpritSoft, Inc.. All Rights Reserved.