| 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 | 969 | this(new UnderscoredToCapitalized()); |
| 37 | 969 | } |
| 38 | |
|
| 39 | |
public FreemarkerViewGenerator(StoryNameResolver nameResolver) { |
| 40 | 969 | super(nameResolver, new FreemarkerProcessor()); |
| 41 | 969 | } |
| 42 | |
|
| 43 | |
public Properties defaultViewProperties() { |
| 44 | 352 | Properties properties = new Properties(); |
| 45 | 352 | properties.setProperty("views", "ftl/jbehave-views.ftl"); |
| 46 | 352 | properties.setProperty("maps", "ftl/jbehave-maps.ftl"); |
| 47 | 352 | properties.setProperty("navigator", "ftl/jbehave-navigator.ftl"); |
| 48 | 352 | properties.setProperty("reports", "ftl/jbehave-reports-with-totals.ftl"); |
| 49 | 352 | properties.setProperty("decorated", "ftl/jbehave-report-decorated.ftl"); |
| 50 | 352 | properties.setProperty("nonDecorated", "ftl/jbehave-report-non-decorated.ftl"); |
| 51 | 352 | properties.setProperty("decorateNonHtml", "true"); |
| 52 | 352 | properties.setProperty("defaultFormats", "stats"); |
| 53 | 352 | properties.setProperty("viewDirectory", "view"); |
| 54 | 352 | return properties; |
| 55 | |
} |
| 56 | |
|
| 57 | |
} |