1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.component.wiki; |
21 |
|
|
22 |
|
import java.lang.reflect.Type; |
23 |
|
|
24 |
|
import org.xwiki.model.reference.DocumentReference; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@version |
30 |
|
|
|
|
| 87.5% |
Uncovered Elements: 2 (16) |
Complexity: 7 |
Complexity Density: 0.78 |
|
31 |
|
public class TestImplementation implements TestRole, WikiComponent |
32 |
|
{ |
33 |
|
private DocumentReference documentReference; |
34 |
|
|
35 |
|
private DocumentReference authorReference; |
36 |
|
|
37 |
|
private WikiComponentScope scope; |
38 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
39 |
1 |
public TestImplementation(DocumentReference documentReference, DocumentReference authorReference,... |
40 |
|
WikiComponentScope scope) |
41 |
|
{ |
42 |
1 |
this.documentReference = documentReference; |
43 |
1 |
this.authorReference = authorReference; |
44 |
1 |
this.scope = scope; |
45 |
|
} |
46 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
4-
|
|
47 |
0 |
@Override... |
48 |
|
public String test() |
49 |
|
{ |
50 |
0 |
return "test"; |
51 |
|
} |
52 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
6 |
@Override... |
54 |
|
public DocumentReference getDocumentReference() |
55 |
|
{ |
56 |
6 |
return this.documentReference; |
57 |
|
} |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
3 |
@Override... |
60 |
|
public DocumentReference getAuthorReference() |
61 |
|
{ |
62 |
3 |
return this.authorReference; |
63 |
|
} |
64 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
3 |
@Override... |
66 |
|
public Type getRoleType() |
67 |
|
{ |
68 |
3 |
return TestRole.class; |
69 |
|
} |
70 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
3 |
@Override... |
72 |
|
public String getRoleHint() |
73 |
|
{ |
74 |
3 |
return "roleHint"; |
75 |
|
} |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
3 |
@Override... |
78 |
|
public WikiComponentScope getScope() |
79 |
|
{ |
80 |
3 |
return this.scope; |
81 |
|
} |
82 |
|
} |