1 | |
package org.jbehave.core.reporters; |
2 | |
|
3 | |
import java.util.Properties; |
4 | |
|
5 | |
import org.jbehave.core.io.StoryNameResolver; |
6 | |
import org.jbehave.core.io.UnderscoredToCapitalized; |
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
public class FreemarkerViewGenerator extends TemplateableViewGenerator { |
34 | |
|
35 | |
public FreemarkerViewGenerator() { |
36 | 936 | this(new UnderscoredToCapitalized()); |
37 | 936 | } |
38 | |
|
39 | |
public FreemarkerViewGenerator(StoryNameResolver nameResolver) { |
40 | 936 | super(nameResolver, new FreemarkerProcessor()); |
41 | 936 | } |
42 | |
|
43 | |
public Properties defaultViewProperties() { |
44 | 341 | Properties properties = new Properties(); |
45 | 341 | properties.setProperty("views", "ftl/jbehave-views.ftl"); |
46 | 341 | properties.setProperty("maps", "ftl/jbehave-maps.ftl"); |
47 | 341 | properties.setProperty("navigator", "ftl/jbehave-navigator.ftl"); |
48 | 341 | properties.setProperty("reports", "ftl/jbehave-reports-with-totals.ftl"); |
49 | 341 | properties.setProperty("decorated", "ftl/jbehave-report-decorated.ftl"); |
50 | 341 | properties.setProperty("nonDecorated", "ftl/jbehave-report-non-decorated.ftl"); |
51 | 341 | properties.setProperty("decorateNonHtml", "true"); |
52 | 341 | properties.setProperty("defaultFormats", "stats"); |
53 | 341 | properties.setProperty("viewDirectory", "view"); |
54 | 341 | return properties; |
55 | |
} |
56 | |
|
57 | |
} |