SpringAnnotatedPathRunner.java

  1. package org.jbehave.core.junit.spring;

  2. import org.jbehave.core.configuration.AnnotationBuilder;
  3. import org.jbehave.core.configuration.spring.SpringAnnotationBuilder;
  4. import org.jbehave.core.junit.AnnotatedPathRunner;
  5. import org.junit.runners.model.InitializationError;

  6. /**
  7.  * AnnotatedPathRunner that uses {@link SpringAnnotationBuilder}.
  8.  */
  9. public class SpringAnnotatedPathRunner extends AnnotatedPathRunner {

  10.     public SpringAnnotatedPathRunner(Class<?> testClass) throws InitializationError {
  11.         super(testClass);
  12.     }

  13.     @Override
  14.     public AnnotationBuilder annotationBuilder() {
  15.         return new SpringAnnotationBuilder(testClass());
  16.     }

  17. }