aboutsummaryrefslogtreecommitdiffstats
path: root/uitest-common
diff options
context:
space:
mode:
authorLeif Åstrand <legioth@gmail.com>2016-12-20 17:50:32 +0200
committerIlia Motornyi <elmot@vaadin.com>2016-12-20 17:50:32 +0200
commit95d016c08569f74a2c76eac40c4f5656bb773951 (patch)
tree340977988748756ee4ace27860dc00b3358519ae /uitest-common
parent1407b8ddaea9a8aace0973864ad9ce093e20a566 (diff)
downloadvaadin-framework-95d016c08569f74a2c76eac40c4f5656bb773951.tar.gz
vaadin-framework-95d016c08569f74a2c76eac40c4f5656bb773951.zip
Global java code cleanup using Eclipse Neon.1
Diffstat (limited to 'uitest-common')
-rw-r--r--uitest-common/src/main/java/com/vaadin/testbench/customelements/CalendarElement.java9
-rw-r--r--uitest-common/src/main/java/com/vaadin/testbench/customelements/ComboBoxElement.java2
-rw-r--r--uitest-common/src/main/java/com/vaadin/testbench/customelements/GridElement.java1
3 files changed, 12 insertions, 0 deletions
diff --git a/uitest-common/src/main/java/com/vaadin/testbench/customelements/CalendarElement.java b/uitest-common/src/main/java/com/vaadin/testbench/customelements/CalendarElement.java
index 3ba2cbbf6a..627e579ef7 100644
--- a/uitest-common/src/main/java/com/vaadin/testbench/customelements/CalendarElement.java
+++ b/uitest-common/src/main/java/com/vaadin/testbench/customelements/CalendarElement.java
@@ -10,38 +10,47 @@ import com.vaadin.testbench.elementsbase.ServerClass;
@ServerClass("com.vaadin.ui.Calendar")
public class CalendarElement
extends com.vaadin.testbench.elements.CalendarElement {
+ @Override
public List<WebElement> getWeekNumbers() {
return findElements(By.className("v-calendar-week-number"));
}
+ @Override
public boolean hasMonthView() {
return isElementPresent(By.className("v-calendar-week-numbers"));
}
+ @Override
public boolean hasWeekView() {
return isElementPresent(By.className("v-calendar-header-week"));
}
+ @Override
public List<WebElement> getDayNumbers() {
return findElements(By.className("v-calendar-day-number"));
}
+ @Override
public List<WebElement> getMonthDays() {
return findElements(By.className("v-calendar-month-day"));
}
+ @Override
public boolean hasDayView() {
return getDayHeaders().size() == 1;
}
+ @Override
public List<WebElement> getDayHeaders() {
return findElements(By.className("v-calendar-header-day"));
}
+ @Override
public void back() {
findElement(By.className("v-calendar-back")).click();
}
+ @Override
public void next() {
findElement(By.className("v-calendar-next")).click();
}
diff --git a/uitest-common/src/main/java/com/vaadin/testbench/customelements/ComboBoxElement.java b/uitest-common/src/main/java/com/vaadin/testbench/customelements/ComboBoxElement.java
index 0f3b7b9d42..89bddf309f 100644
--- a/uitest-common/src/main/java/com/vaadin/testbench/customelements/ComboBoxElement.java
+++ b/uitest-common/src/main/java/com/vaadin/testbench/customelements/ComboBoxElement.java
@@ -13,6 +13,7 @@ public class ComboBoxElement
private static org.openqa.selenium.By bySuggestionPopup = By
.vaadin("#popup");
+ @Override
public WebElement getInputField() {
return findElement(By.vaadin("#textbox"));
}
@@ -27,6 +28,7 @@ public class ComboBoxElement
getInputField().clear();
}
+ @Override
public WebElement getSuggestionPopup() {
return findElement(bySuggestionPopup);
}
diff --git a/uitest-common/src/main/java/com/vaadin/testbench/customelements/GridElement.java b/uitest-common/src/main/java/com/vaadin/testbench/customelements/GridElement.java
index 6c46af7b96..f0ba310023 100644
--- a/uitest-common/src/main/java/com/vaadin/testbench/customelements/GridElement.java
+++ b/uitest-common/src/main/java/com/vaadin/testbench/customelements/GridElement.java
@@ -20,6 +20,7 @@ public class GridElement extends com.vaadin.testbench.elements.GridElement {
* @throws NoSuchElementException
* if the given details row is currently not open
*/
+ @Override
public TestBenchElement getDetails(int rowIndex)
throws NoSuchElementException {
return getSubPart("#details[" + rowIndex + "]");