public class Embedder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Embedder.AnnotatedEmbedderRunFailed |
static interface |
Embedder.EmbedderFailureStrategy |
static class |
Embedder.RunningEmbeddablesFailed |
static class |
Embedder.RunningStoriesFailed |
static class |
Embedder.ThrowingRunningStoriesFailed |
static class |
Embedder.ViewGenerationFailed |
Modifier and Type | Field and Description |
---|---|
protected List<CandidateSteps> |
candidateSteps |
protected EmbedderClassLoader |
classLoader |
protected Configuration |
configuration |
protected EmbedderControls |
embedderControls |
protected Embedder.EmbedderFailureStrategy |
embedderFailureStrategy |
protected EmbedderMonitor |
embedderMonitor |
protected ExecutorService |
executorService |
protected boolean |
executorServiceCreated |
protected List<String> |
metaFilters |
protected Map<String,MetaFilter.MetaMatcher> |
metaMatchers |
protected PerformableTree |
performableTree |
protected InjectableStepsFactory |
stepsFactory |
protected StoryManager |
storyManager |
protected StoryMapper |
storyMapper |
protected Properties |
systemProperties |
protected StoryTimeouts.TimeoutParser[] |
timeoutParsers |
Constructor and Description |
---|
Embedder() |
Embedder(EmbedderMonitor embedderMonitor) |
Embedder(StoryMapper storyMapper,
PerformableTree performableTree,
EmbedderMonitor embedderMonitor) |
protected StoryMapper storyMapper
protected EmbedderMonitor embedderMonitor
protected EmbedderClassLoader classLoader
protected EmbedderControls embedderControls
protected Embedder.EmbedderFailureStrategy embedderFailureStrategy
protected Configuration configuration
protected List<CandidateSteps> candidateSteps
protected InjectableStepsFactory stepsFactory
protected Map<String,MetaFilter.MetaMatcher> metaMatchers
protected Properties systemProperties
protected ExecutorService executorService
protected boolean executorServiceCreated
protected PerformableTree performableTree
protected StoryManager storyManager
protected StoryTimeouts.TimeoutParser[] timeoutParsers
public Embedder()
public Embedder(EmbedderMonitor embedderMonitor)
public Embedder(StoryMapper storyMapper, PerformableTree performableTree, EmbedderMonitor embedderMonitor)
public void runStoriesWithAnnotatedEmbedderRunner(List<String> classNames)
public void generateReportsView()
public void generateReportsView(File outputDirectory, List<String> formats, Properties viewResources)
public void generateCrossReference()
public void reportStepdocs()
public void reportStepdocs(Configuration configuration, List<CandidateSteps> candidateSteps)
public void reportMatchingStepdocs(String stepAsString)
public void processSystemProperties()
public EmbedderClassLoader classLoader()
public Configuration configuration()
public List<CandidateSteps> candidateSteps()
public InjectableStepsFactory stepsFactory()
public EmbedderControls embedderControls()
public EmbedderMonitor embedderMonitor()
public Embedder.EmbedderFailureStrategy embedderFailureStrategy()
public boolean hasExecutorService()
public ExecutorService executorService()
protected void shutdownExecutorService()
useExecutorService(ExecutorService)
need to be managed by the
provider.public StoryManager storyManager()
protected void configureThreads(Configuration configuration, int threads)
public Map<String,MetaFilter.MetaMatcher> metaMatchers()
public MetaFilter metaFilter()
public PerformableTree performableTree()
public Properties systemProperties()
public StoryTimeouts.TimeoutParser[] timeoutParsers()
public void useClassLoader(EmbedderClassLoader classLoader)
public void useConfiguration(Configuration configuration)
public void useCandidateSteps(List<CandidateSteps> candidateSteps)
public void useStepsFactory(InjectableStepsFactory stepsFactory)
public void useEmbedderControls(EmbedderControls embedderControls)
public void useEmbedderFailureStrategy(Embedder.EmbedderFailureStrategy failureStategy)
public void useEmbedderMonitor(EmbedderMonitor embedderMonitor)
public void useExecutorService(ExecutorService executorService)
public void useMetaMatchers(Map<String,MetaFilter.MetaMatcher> metaMatchers)
public void usePerformableTree(PerformableTree performableTree)
public void useSystemProperties(Properties systemProperties)
public void useTimeoutParsers(StoryTimeouts.TimeoutParser... timeoutParsers)
Copyright © 2003–2016. All rights reserved.