|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sysunit.ThreadMethodTBeanFactory
public class ThreadMethodTBeanFactory
TBeanFactory
implementation which uses a static method
to synthesize simple TBean
s.
By using the body of the static method as the logic of the TBean
,
the ThreadMethodTBeanFactory
creates ThreadMethodTBean
s
for execution. This allows simple TBean
synthesizing without
having to write actual TBean
implementations.
TBean
,
ThreadMethodTBean
Field Summary |
---|
Fields inherited from interface org.sysunit.TBeanFactory |
---|
EMPTY_ARRAY |
Constructor Summary | |
---|---|
ThreadMethodTBeanFactory(SystemTestCase testCase,
Method threadMethod)
Construct. |
Method Summary | |
---|---|
SystemTestCase |
getTestCase()
Retrieve the SystemTestCase . |
Method |
getThreadMethod()
Retrieve the static thread body Method . |
TBean |
newTBean()
Create a new TBean . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadMethodTBeanFactory(SystemTestCase testCase, Method threadMethod)
testCase
- The test-case.threadMethod
- Static TBean thread body method.Method Detail |
---|
public SystemTestCase getTestCase()
SystemTestCase
.
public Method getThreadMethod()
Method
.
public TBean newTBean() throws Exception
TBeanFactory
TBean
.
newTBean
in interface TBeanFactory
Exception
- If an error occurs while attempting to
create the TBean.TBeanFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |