|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.bechte.junit.runners.context.statements.StatementExecutor
public class StatementExecutor
The StatementExecutor evaluates the given Statement and notifies the RunNotifier about all
events that occur during execution. It also handles the errors that might be thrown during execution.
One can easily provide additional notifications by overriding the StatementExecutor and providing an
implementation for the template methods:
beforeExecution(EachTestNotifier)
afterExecution(EachTestNotifier)
MethodStatementExecutor| Constructor Summary | |
|---|---|
StatementExecutor()
|
|
| Method Summary | |
|---|---|
protected void |
afterExecution(org.junit.internal.runners.model.EachTestNotifier notifier)
Clients may override this method to add additional behavior after the execution of the statement. |
protected void |
beforeExecution(org.junit.internal.runners.model.EachTestNotifier notifier)
Clients may override this method to add additional behavior prior to the execution of the statement. |
void |
execute(org.junit.runners.model.Statement statement,
org.junit.runner.notification.RunNotifier notifier,
org.junit.runner.Description description)
|
protected void |
whenAssumptionViolatedExceptionIsRaised(org.junit.internal.runners.model.EachTestNotifier notifier,
org.junit.internal.AssumptionViolatedException e)
Clients may override this method to add additional behavior when a AssumptionViolatedException is raised. |
protected void |
whenInitializationErrorIsRaised(org.junit.internal.runners.model.EachTestNotifier notifier,
org.junit.runners.model.InitializationError e)
Clients may override this method to add additional behavior when a InitializationError is raised. |
protected void |
whenThrowableIsRaised(org.junit.internal.runners.model.EachTestNotifier notifier,
Throwable e)
Clients may override this method to add additional behavior when a Throwable is raised. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatementExecutor()
| Method Detail |
|---|
public void execute(org.junit.runners.model.Statement statement,
org.junit.runner.notification.RunNotifier notifier,
org.junit.runner.Description description)
protected void beforeExecution(org.junit.internal.runners.model.EachTestNotifier notifier)
notifier - the notifier
protected void whenInitializationErrorIsRaised(org.junit.internal.runners.model.EachTestNotifier notifier,
org.junit.runners.model.InitializationError e)
InitializationError is raised.
The call of this method is guaranteed.
notifier - the notifiere - the error
protected void whenAssumptionViolatedExceptionIsRaised(org.junit.internal.runners.model.EachTestNotifier notifier,
org.junit.internal.AssumptionViolatedException e)
AssumptionViolatedException is raised.
The call of this method is guaranteed.
notifier - the notifiere - the error
protected void whenThrowableIsRaised(org.junit.internal.runners.model.EachTestNotifier notifier,
Throwable e)
Throwable is raised.
notifier - the notifiere - the errorprotected void afterExecution(org.junit.internal.runners.model.EachTestNotifier notifier)
notifier - the notifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||