org.sysunit
Class ThreadMethodTBean

java.lang.Object
  extended by junit.framework.Assert
      extended by org.sysunit.AbstractTBean
          extended by org.sysunit.ThreadMethodTBean
All Implemented Interfaces:
SynchronizableTBean, TBean

public class ThreadMethodTBean
extends AbstractTBean
implements SynchronizableTBean

Synthetic TBean whose body comes from a SystemTestCase method.

Version:
$Id: ThreadMethodTBean.java,v 1.1 2003/06/04 04:27:20 werken Exp $
Author:
Bob McWhirter
See Also:
SystemTestCase

Field Summary
 
Fields inherited from interface org.sysunit.TBean
EMPTY_ARRAY
 
Constructor Summary
ThreadMethodTBean(SystemTestCase testCase, Method threadMethod)
          Construct.
 
Method Summary
 TBeanSynchronizer getSynchronizer()
          Retrieve the TBeanSynchronizer.
 SystemTestCase getTestCase()
          Retrieve the SystemTestCase.
 Method getThreadMethod()
          Retrieve the thread Method.
 void run()
          Called in parallel by the SysUnit test case to run the TBean
 void setSynchronizer(TBeanSynchronizer synchronizer)
          Set the TBeanSynchronizer.
 
Methods inherited from class org.sysunit.AbstractTBean
assertValid, setUp, tearDown
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sysunit.TBean
assertValid, setUp, tearDown
 

Constructor Detail

ThreadMethodTBean

public ThreadMethodTBean(SystemTestCase testCase,
                         Method threadMethod)
Construct.

Parameters:
testCase - The thread method host test-case.
threadMethod - The thread method.
Method Detail

getTestCase

public SystemTestCase getTestCase()
Retrieve the SystemTestCase.

Returns:
The test-case.

getThreadMethod

public Method getThreadMethod()
Retrieve the thread Method.

Returns:
The thread method.

setSynchronizer

public void setSynchronizer(TBeanSynchronizer synchronizer)
Description copied from interface: SynchronizableTBean
Set the TBeanSynchronizer.

Specified by:
setSynchronizer in interface SynchronizableTBean
Parameters:
synchronizer - The synchronizer.
See Also:
SynchronizableTBean

getSynchronizer

public TBeanSynchronizer getSynchronizer()
Retrieve the TBeanSynchronizer.

Returns:
The synchronizer.

run

public void run()
         throws Exception
Description copied from interface: TBean
Called in parallel by the SysUnit test case to run the TBean

Specified by:
run in interface TBean
Throws:
Exception
See Also:
TBean


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