1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.rice.test; |
17 |
|
|
18 |
|
import java.io.BufferedReader; |
19 |
|
import java.io.FileReader; |
20 |
|
|
21 |
|
import org.apache.commons.lang.StringUtils; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@author |
28 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 6 |
Complexity Density: 0.67 |
|
29 |
|
public abstract class RiceInternalSuiteDataTestCase extends RiceTestCase { |
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.5 |
|
34 |
0
|
@Override... |
35 |
|
protected void loadSuiteTestData() throws Exception { |
36 |
0
|
new SQLDataLoader(getKNSDefaultSuiteTestData(), "/").runSql(); |
37 |
0
|
BufferedReader reader = new BufferedReader(new FileReader(getKIMDataLoadOrderFile())); |
38 |
0
|
String line = null; |
39 |
0
|
while ((line = reader.readLine()) != null) { |
40 |
0
|
if (!StringUtils.isBlank(line)) { |
41 |
0
|
new SQLDataLoader(getKIMSqlFileBaseLocation() + "/" + line, "/").runSql(); |
42 |
|
} |
43 |
|
} |
44 |
|
} |
45 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
46 |
0
|
protected String getKNSDefaultSuiteTestData() {... |
47 |
0
|
return "file:" + getBaseDir() + "/../impl/src/test/config/data/DefaultSuiteTestDataKNS.sql"; |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0
|
protected String getKIMDataLoadOrderFile() {... |
51 |
0
|
return getBaseDir() + "/../impl/src/test/config/data/KIMDataLoadOrder.txt"; |
52 |
|
} |
53 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
54 |
0
|
protected String getKIMSqlFileBaseLocation() {... |
55 |
0
|
return "file:" + getBaseDir() + "/../impl/src/test/config/data"; |
56 |
|
} |
57 |
|
} |