| 1 | |
package org.jbehave.core.configuration.spring; |
| 2 | |
|
| 3 | |
import org.jbehave.core.configuration.Keywords; |
| 4 | |
import org.jbehave.core.reporters.FilePrintStreamFactory.FilePathResolver; |
| 5 | |
import org.jbehave.core.reporters.StoryReporterBuilder; |
| 6 | |
|
| 7 | |
import java.net.URL; |
| 8 | |
import java.util.List; |
| 9 | |
import java.util.Properties; |
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | 6 | public class SpringStoryReporterBuilder extends StoryReporterBuilder { |
| 16 | |
|
| 17 | |
public List<org.jbehave.core.reporters.Format> getFormats() { |
| 18 | 1 | return formats(); |
| 19 | |
} |
| 20 | |
|
| 21 | |
public void setFormats(List<org.jbehave.core.reporters.Format> formats) { |
| 22 | 6 | withFormats(formats.toArray(new org.jbehave.core.reporters.Format[formats.size()])); |
| 23 | 6 | } |
| 24 | |
|
| 25 | |
public String getOutputDirectory() { |
| 26 | 1 | return outputDirectory().getPath(); |
| 27 | |
} |
| 28 | |
|
| 29 | |
public String getRelativeDirectory() { |
| 30 | 1 | return relativeDirectory(); |
| 31 | |
} |
| 32 | |
|
| 33 | |
public void setRelativeDirectory(String relativeDirectory) { |
| 34 | 6 | withRelativeDirectory(relativeDirectory); |
| 35 | 6 | } |
| 36 | |
|
| 37 | |
public URL getCodeLocation() { |
| 38 | 1 | return codeLocation(); |
| 39 | |
} |
| 40 | |
|
| 41 | |
public void setCodeLocation(URL codeLocation) { |
| 42 | 1 | withCodeLocation(codeLocation); |
| 43 | 1 | } |
| 44 | |
|
| 45 | |
public Keywords getKeywords(){ |
| 46 | 1 | return keywords(); |
| 47 | |
} |
| 48 | |
|
| 49 | |
public void setKeywords(Keywords keywords){ |
| 50 | 6 | withKeywords(keywords); |
| 51 | 6 | } |
| 52 | |
|
| 53 | |
public FilePathResolver getPathResolver() { |
| 54 | 1 | return pathResolver(); |
| 55 | |
} |
| 56 | |
|
| 57 | |
public void setPathResolver(FilePathResolver pathResolver) { |
| 58 | 1 | withPathResolver(pathResolver); |
| 59 | 1 | } |
| 60 | |
|
| 61 | |
public boolean isReportFailureTrace() { |
| 62 | 1 | return reportFailureTrace(); |
| 63 | |
} |
| 64 | |
|
| 65 | |
public void setReportFailureTrace(boolean reportFailureTrace) { |
| 66 | 6 | withFailureTrace(reportFailureTrace); |
| 67 | 6 | } |
| 68 | |
|
| 69 | |
|
| 70 | |
public boolean isReportFailureTraceCompression() { |
| 71 | 0 | return compressFailureTrace(); |
| 72 | |
} |
| 73 | |
|
| 74 | |
public void setReportFailureTraceCompression(boolean reportFailureTraceCompression) { |
| 75 | 0 | withFailureTraceCompression(reportFailureTraceCompression); |
| 76 | 0 | } |
| 77 | |
|
| 78 | |
public Properties getViewResources() { |
| 79 | 1 | return viewResources(); |
| 80 | |
} |
| 81 | |
|
| 82 | |
public void setViewResources(Properties viewResources) { |
| 83 | 6 | withViewResources(viewResources); |
| 84 | 6 | } |
| 85 | |
|
| 86 | |
public boolean isMultiThreading() { |
| 87 | 0 | return multiThreading(); |
| 88 | |
} |
| 89 | |
|
| 90 | |
public void setMultiThreading(boolean multiThreading) { |
| 91 | 0 | withMultiThreading(multiThreading); |
| 92 | 0 | } |
| 93 | |
|
| 94 | |
} |