1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.contract.writer; |
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
@author |
21 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 4 |
Complexity Density: 0.33 |
|
22 |
|
public class JavaClassFileNameBuilder { |
23 |
|
|
24 |
|
private String rootDirectory; |
25 |
|
private String packageName; |
26 |
|
private String className; |
27 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
28 |
0
|
public JavaClassFileNameBuilder(String rootDirectory,... |
29 |
|
String packageName, |
30 |
|
String className) { |
31 |
0
|
this.rootDirectory = rootDirectory; |
32 |
0
|
this.packageName = packageName; |
33 |
0
|
this.className = className; |
34 |
|
} |
35 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
36 |
0
|
public String buildDirectory() {... |
37 |
0
|
String dirName = rootDirectory; |
38 |
0
|
if (!dirName.endsWith("/")) { |
39 |
0
|
dirName += "/"; |
40 |
|
} |
41 |
0
|
dirName += packageName.replace(".", "/"); |
42 |
0
|
return dirName; |
43 |
|
} |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
45 |
0
|
public String build() {... |
46 |
0
|
String fileName = buildDirectory(); |
47 |
0
|
fileName += "/" + className; |
48 |
0
|
fileName += ".java"; |
49 |
0
|
return fileName; |
50 |
|
} |
51 |
|
} |