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