|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Bridge
A Bridge intercepts a test and delegates the execution to the same (or another) test in and isolated test environment. An isolated test environment is one that does not have the same class loading space as the test itself. Isolated test environments are for example
Request
is fieled through an Invoker
that that returns a Response
for the given test run.
Invokers may be arbitarily complex. Local 'in proccess' invokers are
possible just as well as remote invokers.
void testMethod { if(isNotInContainer()) { BridgeFactory.getBridge().run(); return; } else { // in container test logic ... } }
Method Summary | |
---|---|
Class<?> |
getCallerClass()
Get the caller's class |
String |
getCallerFrame()
Get the caller's concatination of class name and method. |
String |
getCallerMethod()
Get the caller's method |
Invoker |
getInvoker()
Get the invoker that is associated with this bridge. |
void |
run()
Intercepts a test and delegates the execution to the same test in the same test class. |
void |
run(Class<?> testClass)
Intercepts a test and delegates the execution to the same test in a different test class. |
void |
run(Class<?> testClass,
String testMethod)
Intercepts a test and delegates the execution to another test in a different test class. |
void |
setInvoker(Invoker invoker)
Set the invoker that is associated with this bridge. |
Method Detail |
---|
Class<?> getCallerClass()
String getCallerMethod()
String getCallerFrame()
void run()
void run(Class<?> testClass)
void run(Class<?> testClass, String testMethod)
Invoker getInvoker()
void setInvoker(Invoker invoker)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |