##### Coverage Report - org.jbehave.core.junit.weld.WeldAnnotatedPathRunner

Classes in this File | Line Coverage | Branch Coverage | Complexity
WeldAnnotatedPathRunner |
0% | 0/6
0% | 0/2
| 1.5;1.5

1 |  |
     package org.jbehave.core.junit.weld;
2 |  |
3 |  |
     import org.jbehave.core.configuration.AnnotationBuilder;
4 |  |
     import org.jbehave.core.configuration.weld.WeldAnnotationBuilder;
5 |  |
     import org.jbehave.core.configuration.weld.WeldBootstrap;
6 |  |
     import org.jbehave.core.junit.AnnotatedPathRunner;
7 |  |
     import org.junit.runners.model.InitializationError;
8 |  |
9 |  |
     /**
10 |  |
      * AnnotatedPathRunner that uses {@link WeldAnnotationBuilder}.
11 |  |
      *
12 |  |
      * @author Aaron Walker
13 |  |
      */
14 |  |
     public class WeldAnnotatedPathRunner extends AnnotatedPathRunner {
15 |  |
16 |  |
         private WeldBootstrap container;
17 |  |
18 |  |
         public WeldAnnotatedPathRunner(Class<?> testClass) throws InitializationError {
19 | 0 |
             super(testClass);
20 |  |
21 | 0 |
         }
22 |  |
23 |  |
         public AnnotationBuilder annotationBuilder() {
24 | 0 |
             if (container == null) {
25 | 0 |
                 container = new WeldBootstrap();
26 | 0 |
                 container.initialize();
27 |  |
             }
28 | 0 |
             return container.findAnnotationBuilder(testClass());
29 |  |
         }
30 |  |
     }