|
1 |
| package com.agical.rdoc.extension.junit; |
|
2 |
| |
|
3 |
| import java.util.ArrayList; |
|
4 |
| import java.util.List; |
|
5 |
| |
|
6 |
| import com.agical.rdoc.core.PostProcessorProvider; |
|
7 |
| import com.agical.rdoc.core.TestSuitePostProcessor; |
|
8 |
| import com.agical.rdoc.core.model.test.service.TestStructureService; |
|
9 |
| import com.agical.rmock.core.configuration.Configurator; |
|
10 |
| import com.agical.rmock.extension.junit.DynamicTestSuite; |
|
11 |
| |
|
12 |
| public abstract class TDDocTestSuite extends DynamicTestSuite implements PostProcessorProvider { |
|
13 |
| |
|
14 |
| private final List postProcessors = new ArrayList(); |
|
15 |
| protected TestStructureService testStructureService; |
|
16 |
| |
|
17 |
0
| public TDDocTestSuite(String name) {
|
|
18 |
0
| super(name);
|
|
19 |
| } |
|
20 |
| |
|
21 |
2
| public TDDocTestSuite(String name, Configurator configurator, String testStructureName) {
|
|
22 |
2
| super(name, configurator, testStructureName);
|
|
23 |
| } |
|
24 |
| |
|
25 |
0
| public TDDocTestSuite(String name, Configurator configurator) {
|
|
26 |
0
| super(name, configurator);
|
|
27 |
| } |
|
28 |
| |
|
29 |
0
| public TestSuitePostProcessor[] getPostProcessors() {
|
|
30 |
0
| return (TestSuitePostProcessor[])postProcessors.toArray(new TestSuitePostProcessor[postProcessors.size()]);
|
|
31 |
| } |
|
32 |
| |
|
33 |
0
| protected void addPostProcessor(TestSuitePostProcessor postProcessor) {
|
|
34 |
0
| getPostProcessorList().add(postProcessor);
|
|
35 |
| } |
|
36 |
| |
|
37 |
0
| private List getPostProcessorList() {
|
|
38 |
0
| return postProcessors;
|
|
39 |
| } |
|
40 |
| |
|
41 |
| |
|
42 |
| } |