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

Classes in this File | Line Coverage | Branch Coverage | Complexity
WeldAnnotatedEmbedderRunner |
100% | 6/6
N/A | N/A
| 1.0;1

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.AnnotatedEmbedderRunner;
7 |  |
     import org.junit.runners.model.InitializationError;
8 |  |
9 |  |
     /**
10 |  |
      * AnnotatedEmbedderRunner that uses {@link WeldAnnotationBuilder}.
11 |  |
      *
12 |  |
      * @author Aaron Walker
13 |  |
      */
14 |  |
     public class WeldAnnotatedEmbedderRunner extends AnnotatedEmbedderRunner {
15 |  |
         private WeldAnnotationBuilder annotationBuilder;
16 |  |
         private WeldBootstrap container;
17 |  |
18 |  |
         public WeldAnnotatedEmbedderRunner(Class<?> testClass) throws InitializationError {
19 | 1 |
             super(testClass);
20 |  |
21 | 1 |
             container = new WeldBootstrap();
22 | 1 |
             container.initialize();
23 |  |
24 | 1 |
             this.annotationBuilder = container.findAnnotationBuilder(testClass());
25 | 1 |
         }
26 |  |
27 |  |
         public AnnotationBuilder annotationBuilder() {
28 | 1 |
             return annotationBuilder;
29 |  |
         }
30 |  |
     }