diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2018-05-02 13:34:10 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-05-02 13:34:10 +0300 |
commit | c4d621c7772347f1b90c94d566c894b7434cb7f1 (patch) | |
tree | 896e04c4002ccec28d60995fb9534acbd91d211d /testbench-api | |
parent | 494dac9ec2f509777a1a31579c3aaaf84b158709 (diff) | |
download | vaadin-framework-c4d621c7772347f1b90c94d566c894b7434cb7f1.tar.gz vaadin-framework-c4d621c7772347f1b90c94d566c894b7434cb7f1.zip |
Enable formatting in testbench-api module (#10852)
Diffstat (limited to 'testbench-api')
-rw-r--r-- | testbench-api/pom.xml | 4 | ||||
-rw-r--r-- | testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/testbench-api/pom.xml b/testbench-api/pom.xml index ac0e2e7b02..e07dad1ca7 100644 --- a/testbench-api/pom.xml +++ b/testbench-api/pom.xml @@ -36,6 +36,10 @@ <build> <plugins> <plugin> + <groupId>net.revelc.code.formatter</groupId> + <artifactId>formatter-maven-plugin</artifactId> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <executions> diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java index c9c91a9be6..2f78e01f13 100644 --- a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java +++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java @@ -462,7 +462,8 @@ public class GridElement extends AbstractComponentElement { Optional<WebElement> toggleButton = getDriver() .findElement(By.className("v-grid-sidebar-content")) .findElements(By.className("column-hiding-toggle")).stream() - .filter(element -> element.getText().equals(toggleCaption)).findAny(); + .filter(element -> element.getText().equals(toggleCaption)) + .findAny(); if (toggleButton.isPresent()) { toggleButton.ifPresent(element -> element.click()); } else { |