|
1 |
| package com.agical.rdoc.core.model.test.builder; |
|
2 |
| |
|
3 |
| import com.agical.rdoc.core.model.test.TestCaseBuilder; |
|
4 |
| import com.agical.rdoc.core.model.test.TestNode; |
|
5 |
| import com.agical.rdoc.core.model.test.TestStructureBuilder; |
|
6 |
| import com.agical.rdoc.core.model.test.TestSuiteBuilder; |
|
7 |
| import com.agical.rdoc.core.model.test.TestSuiteFactory; |
|
8 |
| import com.agical.rdoc.core.model.test.impl.TestStructureImpl; |
|
9 |
| |
|
10 |
| public class TestStructureBuilderImpl implements TestStructureBuilder { |
|
11 |
| private TestStructureImpl testStructure; |
|
12 |
| private TestSuiteFactory testSuiteFactory = new TestSuiteFactoryImpl(); |
|
13 |
| |
|
14 |
14
| public TestNode getTestStructure() {
|
|
15 |
14
| return testStructure;
|
|
16 |
| } |
|
17 |
| |
|
18 |
14
| public void begin(String name) {
|
|
19 |
14
| testStructure = new TestStructureImpl(name);
|
|
20 |
| } |
|
21 |
| |
|
22 |
14
| public TestSuiteBuilder beginSuite(Object suite, String suiteName) {
|
|
23 |
14
| TestSuite testSuite = testSuiteFactory.create(suite, suiteName);
|
|
24 |
14
| testStructure.addRoot(testSuite);
|
|
25 |
14
| return new TestSuiteBuilderImpl (this, testSuite, testSuiteFactory);
|
|
26 |
| } |
|
27 |
| |
|
28 |
0
| public TestCaseBuilder beginTestCase(Class clazz) {
|
|
29 |
0
| return null;
|
|
30 |
| } |
|
31 |
| |
|
32 |
0
| public TestSuiteBuilder endSuite() {
|
|
33 |
0
| return null;
|
|
34 |
| } |
|
35 |
| |
|
36 |
14
| public void end() {
|
|
37 |
| } |
|
38 |
| |
|
39 |
| } |