##### Coverage Report - org.jbehave.core.InjectableEmbedder

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

1 |  |
     package org.jbehave.core;
2 |  |
3 |  |
     import org.jbehave.core.embedder.Embedder;
4 |  |
5 |  |
     /**
6 |  |
      * <p>
7 |  |
      * Abstract implementation of {@link Embeddable} which allows to inject
8 |  |
      * the {@link Embedder} used to run the story or stories.
9 |  |
      * </p>
10 |  |
      */
11 | 5 |
     public abstract class InjectableEmbedder implements Embeddable {
12 |  |
13 | 5 |
         private Embedder embedder = new Embedder();
14 |  |
15 |  |
         public void useEmbedder(Embedder embedder) {
16 | 5 |
             this.embedder = embedder;
17 | 5 |
         }
18 |  |
19 |  |
         public Embedder injectedEmbedder() {
20 | 3 |
             return embedder;
21 |  |
         }
22 |  |
23 |  |
     }