1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.user.test.po

File ProfileEditPage.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart6.png
69% of files have more coverage

Code metrics

0
27
18
1
154
106
18
0.67
1.5
18
1

Classes

Class Line # Actions
ProfileEditPage 27 27 0% 18 18
0.660%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.user.test.po;
21   
22    import org.openqa.selenium.WebElement;
23    import org.openqa.selenium.support.FindBy;
24    import org.xwiki.test.ui.po.editor.EditPage;
25   
26    /** User profile, the profile information pane, edit mode. */
 
27    public class ProfileEditPage extends EditPage
28    {
29    @FindBy(id = "XWiki.XWikiUsers_0_first_name")
30    private WebElement userFirstName;
31   
32    @FindBy(id = "XWiki.XWikiUsers_0_last_name")
33    private WebElement userLastName;
34   
35    @FindBy(id = "XWiki.XWikiUsers_0_company")
36    private WebElement userCompany;
37   
38    @FindBy(id = "XWiki.XWikiUsers_0_email")
39    private WebElement userEmail;
40   
41    @FindBy(id = "XWiki.XWikiUsers_0_phone")
42    private WebElement userPhone;
43   
44    @FindBy(id = "XWiki.XWikiUsers_0_blog")
45    private WebElement userBlog;
46   
47    @FindBy(id = "XWiki.XWikiUsers_0_blogfeed")
48    private WebElement userBlogFeed;
49   
50    @FindBy(id = "XWiki.XWikiUsers_0_comment")
51    private WebElement userAbout;
52   
53    @FindBy(id = "XWiki.XWikiUsers_0_address")
54    private WebElement userAddress;
55   
 
56  0 toggle public String getUserFirstName()
57    {
58  0 return this.userFirstName.getText();
59    }
60   
 
61  1 toggle public void setUserFirstName(String userFirstName)
62    {
63  1 this.userFirstName.clear();
64  1 this.userFirstName.sendKeys(userFirstName);
65    }
66   
 
67  0 toggle public String getUserLastName()
68    {
69  0 return this.userLastName.getText();
70    }
71   
 
72  1 toggle public void setUserLastName(String userLastName)
73    {
74  1 this.userLastName.clear();
75  1 this.userLastName.sendKeys(userLastName);
76    }
77   
 
78  0 toggle public String getUserCompany()
79    {
80  0 return this.userCompany.getText();
81    }
82   
 
83  1 toggle public void setUserCompany(String userCompany)
84    {
85  1 this.userCompany.clear();
86  1 this.userCompany.sendKeys(userCompany);
87    }
88   
 
89  0 toggle public String getUserAbout()
90    {
91  0 return this.userAbout.getText();
92    }
93   
 
94  1 toggle public void setUserAbout(String userAbout)
95    {
96  1 this.userAbout.clear();
97  1 this.userAbout.sendKeys(userAbout);
98    }
99   
 
100  0 toggle public String getUserEmail()
101    {
102  0 return this.userEmail.getText();
103    }
104   
 
105  1 toggle public void setUserEmail(String userEmail)
106    {
107  1 this.userEmail.clear();
108  1 this.userEmail.sendKeys(userEmail);
109    }
110   
 
111  0 toggle public String getUserPhone()
112    {
113  0 return this.userPhone.getText();
114    }
115   
 
116  1 toggle public void setUserPhone(String userPhone)
117    {
118  1 this.userPhone.clear();
119  1 this.userPhone.sendKeys(userPhone);
120    }
121   
 
122  0 toggle public String getUserAddress()
123    {
124  0 return this.userAddress.getText();
125    }
126   
 
127  1 toggle public void setUserAddress(String userAddress)
128    {
129  1 this.userAddress.clear();
130  1 this.userAddress.sendKeys(userAddress);
131    }
132   
 
133  0 toggle public String getUserBlog()
134    {
135  0 return this.userBlog.getText();
136    }
137   
 
138  1 toggle public void setUserBlog(String userBlog)
139    {
140  1 this.userBlog.clear();
141  1 this.userBlog.sendKeys(userBlog);
142    }
143   
 
144  0 toggle public String getUserBlogFeed()
145    {
146  0 return this.userBlogFeed.getText();
147    }
148   
 
149  1 toggle public void setUserBlogFeed(String userBlogFeed)
150    {
151  1 this.userBlogFeed.clear();
152  1 this.userBlogFeed.sendKeys(userBlogFeed);
153    }
154    }