1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
package org.kuali.rice.test.lifecycles; |
14 |
|
|
15 |
|
import org.kuali.rice.core.api.lifecycle.Lifecycle; |
16 |
|
import org.kuali.rice.test.RiceTestCase; |
17 |
|
import org.kuali.rice.test.data.PerSuiteUnitTestData; |
18 |
|
import org.kuali.rice.test.data.UnitTestData; |
19 |
|
import org.kuali.rice.test.data.UnitTestDataUtils; |
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
@author |
27 |
|
|
|
|
| 0% |
Uncovered Elements: 13 (13) |
Complexity: 5 |
Complexity Density: 0.71 |
|
28 |
|
public class PerSuiteDataLoaderLifecycle implements Lifecycle { |
29 |
|
private boolean started; |
30 |
|
|
31 |
|
private Class<? extends RiceTestCase> annotatedClass; |
32 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
33 |
0
|
public PerSuiteDataLoaderLifecycle(Class<? extends RiceTestCase> annotatedClass) {... |
34 |
0
|
this.annotatedClass = annotatedClass; |
35 |
|
} |
36 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
37 |
0
|
public boolean isStarted() {... |
38 |
0
|
return started; |
39 |
|
} |
40 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
41 |
0
|
public void start() throws Exception {... |
42 |
0
|
if (annotatedClass.isAnnotationPresent(PerSuiteUnitTestData.class)) { |
43 |
0
|
UnitTestData[] data = annotatedClass.getAnnotation(PerSuiteUnitTestData.class).value(); |
44 |
0
|
UnitTestDataUtils.executeDataLoader(data); |
45 |
|
} |
46 |
0
|
started = true; |
47 |
|
} |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0
|
public void stop() throws Exception {... |
50 |
0
|
started = false; |
51 |
|
} |
52 |
|
|
53 |
|
} |