| 1 | |
package org.jbehave.core.junit.needle; |
| 2 | |
|
| 3 | |
import org.jbehave.core.configuration.AnnotationBuilder; |
| 4 | |
import org.jbehave.core.configuration.needle.NeedleAnnotationBuilder; |
| 5 | |
import org.jbehave.core.junit.AnnotatedEmbedderRunner; |
| 6 | |
import org.junit.runners.model.InitializationError; |
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
public class NeedleAnnotatedEmbedderRunner extends AnnotatedEmbedderRunner { |
| 12 | |
|
| 13 | |
private NeedleAnnotationBuilder annotationBuilder; |
| 14 | |
|
| 15 | |
public NeedleAnnotatedEmbedderRunner(Class<?> testClass) throws InitializationError { |
| 16 | 1 | super(testClass); |
| 17 | 1 | this.annotationBuilder = new NeedleAnnotationBuilder(testClass()); |
| 18 | 1 | } |
| 19 | |
|
| 20 | |
public AnnotationBuilder annotationBuilder() { |
| 21 | 1 | return annotationBuilder; |
| 22 | |
} |
| 23 | |
|
| 24 | |
} |