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

Classes in this File | Line Coverage | Branch Coverage | Complexity
Embeddable |
N/A | N/A
N/A | N/A
| 1.0;1

1 |  |
     package org.jbehave.core;
2 |  |
3 |  |
     import org.jbehave.core.embedder.Embedder;
4 |  |
     import org.jbehave.core.junit.JUnitStories;
5 |  |
     import org.jbehave.core.junit.JUnitStory;
6 |  |
7 |  |
     /**
8 |  |
      * <p>
9 |  |
      * Represents a runnable facade to the {@link Embedder}.
10 |  |
      * </p>
11 |  |
      * <p>
12 |  |
      * Users can either extend the abstract implementation {@link ConfigurableEmbedder},
13 |  |
      * which does not implement the {@link #run()} method, or other
14 |  |
      * implementations, such as {@link JUnitStory} or {@link JUnitStories}, which
15 |  |
      * implement {@link #run()} using JUnit's {@link Test} annotation.
16 |  |
      * </p>
17 |  |
      * <p>
18 |  |
      * Other test frameworks can be supported in much the same way, by extending the
19 |  |
      * abstract implementation and implementing {@link #run()}.
20 |  |
      * </p>
21 |  |
      *
22 |  |
      * @see ConfigurableEmbedder
23 |  |
      * @see InjectableEmbedder
24 |  |
      * @see JUnitStory
25 |  |
      * @see JUnitStories
26 |  |
      */
27 |  |
     public interface Embeddable {
28 |  |
29 |  |
             void useEmbedder(Embedder embedder);
30 |  |
31 |  |
         void run() throws Throwable;
32 |  |
33 |  |
     }