| 1 | |
package org.jbehave.core.steps; |
| 2 | |
|
| 3 | |
import java.lang.reflect.Method; |
| 4 | |
import java.lang.reflect.Type; |
| 5 | |
|
| 6 | |
import org.jbehave.core.model.StepPattern; |
| 7 | |
|
| 8 | |
public class DelegatingStepMonitor implements StepMonitor { |
| 9 | |
|
| 10 | |
protected final StepMonitor delegate; |
| 11 | |
|
| 12 | 0 | public DelegatingStepMonitor(StepMonitor delegate) { |
| 13 | 0 | this.delegate = delegate; |
| 14 | 0 | } |
| 15 | |
|
| 16 | |
public void convertedValueOfType(String value, Type type, Object converted, Class<?> converterClass) { |
| 17 | 0 | delegate.convertedValueOfType(value, type, converted, converterClass); |
| 18 | 0 | } |
| 19 | |
|
| 20 | |
public void stepMatchesType(String stepAsString, String previousAsString, boolean matchesType, StepType stepType, Method method, Object stepsInstance) { |
| 21 | 0 | delegate.stepMatchesType(stepAsString, previousAsString, matchesType, stepType, method, stepsInstance); |
| 22 | 0 | } |
| 23 | |
|
| 24 | |
public void stepMatchesPattern(String step, boolean matches, StepPattern stepPattern, Method method, Object stepsInstance) { |
| 25 | 0 | delegate.stepMatchesPattern(step, matches, stepPattern, method, stepsInstance); |
| 26 | 0 | } |
| 27 | |
|
| 28 | |
public void foundParameter(String parameter, int position) { |
| 29 | 0 | delegate.foundParameter(parameter, position); |
| 30 | 0 | } |
| 31 | |
|
| 32 | |
public void performing(String step, boolean dryRun) { |
| 33 | 0 | delegate.performing(step, dryRun); |
| 34 | 0 | } |
| 35 | |
|
| 36 | |
public void usingAnnotatedNameForParameter(String name, int position) { |
| 37 | 0 | delegate.usingAnnotatedNameForParameter(name, position); |
| 38 | 0 | } |
| 39 | |
|
| 40 | |
public void usingNaturalOrderForParameter(int position) { |
| 41 | 0 | delegate.usingNaturalOrderForParameter(position); |
| 42 | 0 | } |
| 43 | |
|
| 44 | |
public void usingParameterNameForParameter(String name, int position) { |
| 45 | 0 | delegate.usingParameterNameForParameter(name, position); |
| 46 | 0 | } |
| 47 | |
|
| 48 | |
public void usingTableAnnotatedNameForParameter(String name, int position) { |
| 49 | 0 | delegate.usingTableAnnotatedNameForParameter(name, position); |
| 50 | 0 | } |
| 51 | |
|
| 52 | |
public void usingTableParameterNameForParameter(String name, int position) { |
| 53 | 0 | delegate.usingTableParameterNameForParameter(name, position); |
| 54 | 0 | } |
| 55 | |
|
| 56 | |
} |