| 1 | |
package org.jbehave.core.embedder; |
| 2 | |
|
| 3 | |
import java.io.File; |
| 4 | |
import java.util.List; |
| 5 | |
import java.util.Properties; |
| 6 | |
import java.util.concurrent.ExecutorService; |
| 7 | |
|
| 8 | |
import org.jbehave.core.failures.BatchFailures; |
| 9 | |
import org.jbehave.core.model.Meta; |
| 10 | |
import org.jbehave.core.model.Story; |
| 11 | |
import org.jbehave.core.model.StoryDuration; |
| 12 | |
import org.jbehave.core.model.StoryMaps; |
| 13 | |
import org.jbehave.core.reporters.ReportsCount; |
| 14 | |
|
| 15 | |
public interface EmbedderMonitor { |
| 16 | |
|
| 17 | |
void runningEmbeddable(String name); |
| 18 | |
|
| 19 | |
void embeddableFailed(String name, Throwable cause); |
| 20 | |
|
| 21 | |
void embeddableNotConfigurable(String name); |
| 22 | |
|
| 23 | |
void embeddablesSkipped(List<String> classNames); |
| 24 | |
|
| 25 | |
void metaNotAllowed(Meta meta, MetaFilter filter); |
| 26 | |
|
| 27 | |
void runningStory(String path); |
| 28 | |
|
| 29 | |
void storyFailed(String path, Throwable cause); |
| 30 | |
|
| 31 | |
void storiesSkipped(List<String> storyPaths); |
| 32 | |
|
| 33 | |
|
| 34 | |
void storiesNotAllowed(List<Story> notAllowed, MetaFilter filter); |
| 35 | |
|
| 36 | |
void storiesNotAllowed(List<Story> notAllowed, MetaFilter filter, boolean verbose); |
| 37 | |
|
| 38 | |
void batchFailed(BatchFailures failures); |
| 39 | |
|
| 40 | |
void beforeOrAfterStoriesFailed(); |
| 41 | |
|
| 42 | |
void generatingReportsView(File outputDirectory, List<String> formats, Properties viewProperties); |
| 43 | |
|
| 44 | |
void reportsViewGenerationFailed(File outputDirectory, List<String> formats, Properties viewProperties, |
| 45 | |
Throwable cause); |
| 46 | |
|
| 47 | |
void reportsViewGenerated(ReportsCount count); |
| 48 | |
|
| 49 | |
void reportsViewFailures(ReportsCount count); |
| 50 | |
|
| 51 | |
void reportsViewNotGenerated(); |
| 52 | |
|
| 53 | |
void runningWithAnnotatedEmbedderRunner(String className); |
| 54 | |
|
| 55 | |
void annotatedInstanceNotOfType(Object annotatedInstance, Class<?> type); |
| 56 | |
|
| 57 | |
void mappingStory(String storyPath, List<String> metaFilters); |
| 58 | |
|
| 59 | |
void generatingMapsView(File outputDirectory, StoryMaps storyMaps, Properties viewProperties); |
| 60 | |
|
| 61 | |
void mapsViewGenerationFailed(File outputDirectory, StoryMaps storyMaps, Properties viewProperties, Throwable cause); |
| 62 | |
|
| 63 | |
void generatingNavigatorView(File outputDirectory, Properties viewResources); |
| 64 | |
|
| 65 | |
void navigatorViewGenerationFailed(File outputDirectory, Properties viewResources, Throwable cause); |
| 66 | |
|
| 67 | |
void navigatorViewNotGenerated(); |
| 68 | |
|
| 69 | |
void processingSystemProperties(Properties properties); |
| 70 | |
|
| 71 | |
void systemPropertySet(String name, String value); |
| 72 | |
|
| 73 | |
void storyTimeout(Story story, StoryDuration storyDuration); |
| 74 | |
|
| 75 | |
void usingThreads(int threads); |
| 76 | |
|
| 77 | |
void usingExecutorService(ExecutorService executorService); |
| 78 | |
|
| 79 | |
void usingControls(EmbedderControls embedderControls); |
| 80 | |
|
| 81 | |
} |