Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
SameThreadExecutors |
|
| 1.0;1 |
1 | package org.jbehave.core.embedder.executors; | |
2 | ||
3 | import java.util.concurrent.ExecutorService; | |
4 | ||
5 | import org.jbehave.core.embedder.EmbedderControls; | |
6 | ||
7 | import com.google.common.util.concurrent.MoreExecutors; | |
8 | ||
9 | /** | |
10 | * Creates instances of {@link MoreExecutors#sameThreadExecutor()}. | |
11 | */ | |
12 | 1 | public class SameThreadExecutors implements ExecutorServiceFactory { |
13 | ||
14 | public ExecutorService create(EmbedderControls controls) { | |
15 | 1 | return MoreExecutors.sameThreadExecutor(); |
16 | } | |
17 | ||
18 | } |