##### Coverage Report - org.jbehave.core.embedder.EmbedderMonitorDecorator

Classes in this File | Line Coverage | Branch Coverage | Complexity
EmbedderMonitorDecorator |
84% | 55/65
N/A | N/A
| 1.0;1

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 |  |
     /**
16 |  |
      * Decorator of EmbedderMonitor that delegates to an injected instance and
17 |  |
      * allows classes extending it to override only the methods that are needed.
18 |  |
      */
19 |  |
     public class EmbedderMonitorDecorator implements EmbedderMonitor {
20 |  |
21 |  |
         private final EmbedderMonitor delegate;
22 |  |
23 | 1 |
         public EmbedderMonitorDecorator(EmbedderMonitor delegate) {
24 | 1 |
             this.delegate = delegate;
25 | 1 |
         }
26 |  |
27 |  |
         public void runningEmbeddable(String name) {
28 | 1 |
             delegate.runningEmbeddable(name);
29 | 1 |
         }
30 |  |
31 |  |
         public void embeddableFailed(String name, Throwable cause) {
32 | 1 |
             delegate.embeddableFailed(name, cause);
33 | 1 |
         }
34 |  |
35 |  |
         public void embeddableNotConfigurable(String name) {
36 | 1 |
             delegate.embeddableNotConfigurable(name);
37 | 1 |
         }
38 |  |
39 |  |
         public void embeddablesSkipped(List<String> classNames) {
40 | 1 |
             delegate.embeddablesSkipped(classNames);
41 | 1 |
         }
42 |  |
43 |  |
         public void metaNotAllowed(Meta meta, MetaFilter filter) {
44 | 1 |
             delegate.metaNotAllowed(meta, filter);
45 | 1 |
         }
46 |  |
47 |  |
         public void runningStory(String path) {
48 | 1 |
             delegate.runningStory(path);
49 | 1 |
         }
50 |  |
51 |  |
         public void storyFailed(String path, Throwable cause) {
52 | 1 |
             delegate.storyFailed(path, cause);
53 | 1 |
         }
54 |  |
55 |  |
         public void storiesSkipped(List<String> storyPaths) {
56 | 1 |
             delegate.storiesSkipped(storyPaths);
57 | 1 |
         }
58 |  |
59 |  |
         public void storiesNotAllowed(List<Story> notAllowed, MetaFilter filter) {
60 | 0 |
             delegate.storiesNotAllowed(notAllowed, filter);
61 | 0 |
         }
62 |  |
63 |  |
         public void storiesNotAllowed(List<Story> stories, MetaFilter filter, boolean verbose) {
64 | 0 |
             delegate.storiesNotAllowed(stories, filter, verbose);
65 | 0 |
          }
66 |  |
67 |  |
         public void batchFailed(BatchFailures failures) {
68 | 1 |
             delegate.batchFailed(failures);
69 | 1 |
         }
70 |  |
71 |  |
         public void beforeOrAfterStoriesFailed() {
72 | 1 |
             delegate.beforeOrAfterStoriesFailed();
73 | 1 |
         }
74 |  |
75 |  |
         public void generatingReportsView(File outputDirectory, List<String> formats, Properties viewProperties) {
76 | 1 |
             delegate.generatingReportsView(outputDirectory, formats, viewProperties);
77 | 1 |
         }
78 |  |
79 |  |
         public void reportsViewGenerationFailed(File outputDirectory, List<String> formats, Properties viewProperties,
80 |  |
                 Throwable cause) {
81 | 1 |
             delegate.reportsViewGenerationFailed(outputDirectory, formats, viewProperties, cause);
82 | 1 |
         }
83 |  |
84 |  |
         public void reportsViewGenerated(ReportsCount count) {
85 | 1 |
             delegate.reportsViewGenerated(count);
86 | 1 |
         }
87 |  |
88 |  |
         public void reportsViewFailures(ReportsCount count) {
89 | 0 |
             delegate.reportsViewFailures(count);
90 | 0 |
         }
91 |  |
92 |  |
         public void reportsViewNotGenerated() {
93 | 1 |
             delegate.reportsViewNotGenerated();
94 | 1 |
         }
95 |  |
96 |  |
         public void runningWithAnnotatedEmbedderRunner(String className) {
97 | 1 |
             delegate.runningWithAnnotatedEmbedderRunner(className);
98 | 1 |
         }
99 |  |
100 |  |
         public void annotatedInstanceNotOfType(Object annotatedInstance, Class<?> type) {
101 | 1 |
             delegate.annotatedInstanceNotOfType(annotatedInstance, type);
102 | 1 |
         }
103 |  |
104 |  |
         public void mappingStory(String storyPath, List<String> metaFilters) {
105 | 1 |
             delegate.mappingStory(storyPath, metaFilters);
106 | 1 |
         }
107 |  |
108 |  |
         public void generatingMapsView(File outputDirectory, StoryMaps storyMaps, Properties viewProperties) {
109 | 1 |
             delegate.generatingMapsView(outputDirectory, storyMaps, viewProperties);
110 | 1 |
         }
111 |  |
112 |  |
         public void mapsViewGenerationFailed(File outputDirectory, StoryMaps storyMaps, Properties viewProperties,
113 |  |
                 Throwable cause) {
114 | 1 |
             delegate.mapsViewGenerationFailed(outputDirectory, storyMaps, viewProperties, cause);
115 | 1 |
         }
116 |  |
117 |  |
         public void generatingNavigatorView(File outputDirectory, Properties viewResources) {
118 | 1 |
             delegate.generatingNavigatorView(outputDirectory, viewResources);
119 | 1 |
         }
120 |  |
121 |  |
         public void navigatorViewGenerationFailed(File outputDirectory, Properties viewResources, Throwable cause) {
122 | 1 |
             delegate.navigatorViewGenerationFailed(outputDirectory, viewResources, cause);
123 | 1 |
         }
124 |  |
125 |  |
         public void navigatorViewNotGenerated() {
126 | 1 |
             delegate.navigatorViewNotGenerated();
127 | 1 |
         }
128 |  |
129 |  |
         public void processingSystemProperties(Properties properties) {
130 | 1 |
             delegate.processingSystemProperties(properties);
131 | 1 |
         }
132 |  |
133 |  |
         public void systemPropertySet(String name, String value) {
134 | 1 |
             delegate.systemPropertySet(name, value);
135 | 1 |
         }
136 |  |
137 |  |
         public void storyTimeout(Story story, StoryDuration storyDuration) {
138 | 1 |
             delegate.storyTimeout(story, storyDuration);
139 | 1 |
         }
140 |  |
141 |  |
         public void usingThreads(int threads) {
142 | 1 |
             delegate.usingThreads(threads);
143 | 1 |
         }
144 |  |
145 |  |
         public void usingExecutorService(ExecutorService executorService) {
146 | 0 |
             delegate.usingExecutorService(executorService);
147 | 0 |
         }
148 |  |
149 |  |
         public void usingControls(EmbedderControls embedderControls) {
150 | 0 |
             delegate.usingControls(embedderControls);
151 | 0 |
         }
152 |  |
153 |  |
     }