|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TwipExtension
Allows to wrap
a
JUnit- Statement
.
TwipExtensions
Method Summary | |
---|---|
org.junit.runners.model.Statement |
wrap(boolean beforeSetup,
org.junit.runners.model.FrameworkMethod method,
java.lang.Object testInstance,
org.junit.runners.model.Statement statement)
Decorate a JUnit Statement into a new one and thereby extend the
functionality of JUnit. |
Method Detail |
---|
org.junit.runners.model.Statement wrap(boolean beforeSetup, org.junit.runners.model.FrameworkMethod method, java.lang.Object testInstance, org.junit.runners.model.Statement statement)
Statement
into a new one and thereby extend the
functionality of JUnit. This method is called twice, first with
beforeSetup == true
, so the Statement you wrap is executed
before the Before
s are executed; this is what
you'll want to initialize things. The second call is with
beforeSetup == false
, so the Statement you wrap is executed
after the After
s are executed; this is what
you'll want to verify things.
beforeSetup
- Will the wrapped statement be executed before the setup is
done or thereafter?method
- The test method that is to be called.testInstance
- The test instance on which the method is called.statement
- The Statement
that you can wrap.
Statement
wrapping the one passed in; or directly
that, if you choose not to wrap anything.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |