1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.repository.test.po; |
21 |
|
|
22 |
|
import org.openqa.selenium.WebElement; |
23 |
|
import org.openqa.selenium.support.FindBy; |
24 |
|
import org.xwiki.administration.test.po.AdministrationSectionPage; |
25 |
|
|
26 |
|
|
27 |
|
@version |
28 |
|
@since |
29 |
|
|
|
|
| 83.3% |
Uncovered Elements: 2 (12) |
Complexity: 5 |
Complexity Density: 0.71 |
|
30 |
|
public class RepositoryAdminPage extends AdministrationSectionPage |
31 |
|
{ |
32 |
|
public static final String ADMINISTRATION_SECTION_ID = "Repository"; |
33 |
|
|
34 |
|
@FindBy(id = "ExtensionCode.RepositoryConfigClass_0_defaultIdPrefix") |
35 |
|
private WebElement defaultIdPrefix; |
36 |
|
|
37 |
|
@FindBy(xpath = "//input[@type='submit'][@name='action_saveandcontinue']") |
38 |
|
private WebElement updateButton; |
39 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
40 |
1 |
public static RepositoryAdminPage gotoPage()... |
41 |
|
{ |
42 |
1 |
AdministrationSectionPage.gotoPage(ADMINISTRATION_SECTION_ID); |
43 |
1 |
return new RepositoryAdminPage(); |
44 |
|
} |
45 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
46 |
1 |
public RepositoryAdminPage()... |
47 |
|
{ |
48 |
1 |
super(ADMINISTRATION_SECTION_ID); |
49 |
|
} |
50 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
51 |
1 |
public void setDefaultIdPrefix(String defaultIdPrefix)... |
52 |
|
{ |
53 |
1 |
this.defaultIdPrefix.clear(); |
54 |
1 |
this.defaultIdPrefix.sendKeys(defaultIdPrefix); |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0 |
public String getDefaultIdPrefix()... |
58 |
|
{ |
59 |
0 |
return this.defaultIdPrefix.getAttribute("value"); |
60 |
|
} |
61 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
1 |
public void clickUpdateButton()... |
63 |
|
{ |
64 |
1 |
this.updateButton.click(); |
65 |
|
} |
66 |
|
} |