1 | |
package org.jbehave.core.configuration.spring; |
2 | |
|
3 | |
import java.net.URL; |
4 | |
import java.util.List; |
5 | |
import java.util.Properties; |
6 | |
|
7 | |
import org.jbehave.core.configuration.Keywords; |
8 | |
import org.jbehave.core.reporters.StoryReporterBuilder; |
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | 6 | public class SpringStoryReporterBuilder extends StoryReporterBuilder { |
15 | |
|
16 | |
public List<Format> getFormats() { |
17 | 1 | return formats(); |
18 | |
} |
19 | |
|
20 | |
public void setFormats(List<Format> formats) { |
21 | 6 | withFormats(formats.toArray(new Format[formats.size()])); |
22 | 6 | } |
23 | |
|
24 | |
public String getOutputDirectory() { |
25 | 1 | return outputDirectory().getPath(); |
26 | |
} |
27 | |
|
28 | |
public String getRelativeDirectory() { |
29 | 1 | return relativeDirectory(); |
30 | |
} |
31 | |
|
32 | |
public void setRelativeDirectory(String relativeDirectory) { |
33 | 6 | withRelativeDirectory(relativeDirectory); |
34 | 6 | } |
35 | |
|
36 | |
public URL getCodeLocation() { |
37 | 1 | return codeLocation(); |
38 | |
} |
39 | |
|
40 | |
public void setCodeLocation(URL codeLocation) { |
41 | 1 | withCodeLocation(codeLocation); |
42 | 1 | } |
43 | |
|
44 | |
public Keywords getKeywords(){ |
45 | 1 | return keywords(); |
46 | |
} |
47 | |
|
48 | |
public void setKeywords(Keywords keywords){ |
49 | 6 | withKeywords(keywords); |
50 | 6 | } |
51 | |
|
52 | |
public Properties getViewResources() { |
53 | 1 | return viewResources(); |
54 | |
} |
55 | |
|
56 | |
public void setViewResources(Properties viewResources) { |
57 | 6 | withViewResources(viewResources); |
58 | 6 | } |
59 | |
|
60 | |
public boolean isReportFailureTrace() { |
61 | 1 | return reportFailureTrace(); |
62 | |
} |
63 | |
|
64 | |
public void setReportFailureTrace(boolean reportFailureTrace) { |
65 | 6 | withFailureTrace(reportFailureTrace); |
66 | 6 | } |
67 | |
|
68 | |
} |