de.bechte.junit.runners.context.statements.builder
Class HierarchicalRunBeforeStatementBuilder
java.lang.Object
de.bechte.junit.runners.context.statements.builder.HierarchicalRunBeforeStatementBuilder
- All Implemented Interfaces:
- MethodStatementBuilder
public class HierarchicalRunBeforeStatementBuilder
- extends Object
- implements MethodStatementBuilder
The HierarchicalRunBeforeStatementBuilder creates a RunBefores statement for each context hierarchy
level that evaluates all @Before annotated methods on that level. If no such method exist one (or even all)
hierarchy levels is skipped and the builder returns the current (or provided) next Statement.
|
Method Summary |
org.junit.runners.model.Statement |
createStatement(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement next,
org.junit.runner.Description description,
org.junit.runner.notification.RunNotifier notifier)
Creates a Statement for the given attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HierarchicalRunBeforeStatementBuilder
public HierarchicalRunBeforeStatementBuilder()
createStatement
public org.junit.runners.model.Statement createStatement(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement next,
org.junit.runner.Description description,
org.junit.runner.notification.RunNotifier notifier)
- Description copied from interface:
MethodStatementBuilder
- Creates a
Statement for the given attributes.
- Specified by:
createStatement in interface MethodStatementBuilder
- Parameters:
testClass - the TestClass to create the Statement formethod - the FrameworkMethod to create the Statement fornext - the next Statement to evaluate after the new Statement has been processeddescription - the Description that should be used with the RunNotifiernotifier - the RunNotifier to be used to notify about events
- Returns:
- the created
Statement (must not be null!)
Copyright © 2015. All rights reserved.