You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2015/05/15 15:39:07 UTC

svn commit: r1679565 - /myfaces/tobago/trunk/tobago-example/tobago-example-test/src/test/java/org/apache/myfaces/tobago/example/test/TobagoSelenium.java

Author: deki
Date: Fri May 15 13:39:07 2015
New Revision: 1679565

URL: http://svn.apache.org/r1679565
Log:
TOBAGO-1369: Migrate to Selenium WebDriver (checkstyle)

Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/test/java/org/apache/myfaces/tobago/example/test/TobagoSelenium.java

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/test/java/org/apache/myfaces/tobago/example/test/TobagoSelenium.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/test/java/org/apache/myfaces/tobago/example/test/TobagoSelenium.java?rev=1679565&r1=1679564&r2=1679565&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/test/java/org/apache/myfaces/tobago/example/test/TobagoSelenium.java (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/test/java/org/apache/myfaces/tobago/example/test/TobagoSelenium.java Fri May 15 13:39:07 2015
@@ -25,7 +25,15 @@ import com.thoughtworks.selenium.webdriv
 import com.thoughtworks.selenium.webdriven.JavascriptLibrary;
 import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;
 import com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor;
-import com.thoughtworks.selenium.webdriven.commands.*;
+import com.thoughtworks.selenium.webdriven.commands.GetAttribute;
+import com.thoughtworks.selenium.webdriven.commands.GetElementHeight;
+import com.thoughtworks.selenium.webdriven.commands.GetElementPositionLeft;
+import com.thoughtworks.selenium.webdriven.commands.GetElementPositionTop;
+import com.thoughtworks.selenium.webdriven.commands.GetText;
+import com.thoughtworks.selenium.webdriven.commands.GetValue;
+import com.thoughtworks.selenium.webdriven.commands.IsElementPresent;
+import com.thoughtworks.selenium.webdriven.commands.IsTextPresent;
+import com.thoughtworks.selenium.webdriven.commands.WaitForPageToLoad;
 import org.apache.myfaces.tobago.internal.util.StringUtils;
 import org.junit.Assert;
 import org.openqa.selenium.WebDriver;
@@ -241,7 +249,8 @@ public class TobagoSelenium extends WebD
     }
 
     @Override
-    protected Number handleSeleneseCommand(final WebDriver driver, final String locator, final String expectedPosition) {
+    protected Number handleSeleneseCommand(final WebDriver driver, final String locator,
+                                           final String expectedPosition) {
       Number position = super.handleSeleneseCommand(driver, locator, expectedPosition);
       Assert.assertEquals(expectedPosition, Integer.toString(position.intValue()-1));
       return position;
@@ -254,7 +263,8 @@ public class TobagoSelenium extends WebD
     }
 
     @Override
-    protected Number handleSeleneseCommand(final WebDriver driver, final String locator, final String expectedPosition) {
+    protected Number handleSeleneseCommand(final WebDriver driver, final String locator,
+                                           final String expectedPosition) {
       Number position = super.handleSeleneseCommand(driver, locator, expectedPosition);
       Assert.assertEquals(expectedPosition, Integer.toString(position.intValue()-1));
       return position;
@@ -280,7 +290,8 @@ public class TobagoSelenium extends WebD
     }
 
     @Override
-    protected String handleSeleneseCommand(final WebDriver driver, final String attributeLocator, final String expectedValue) {
+    protected String handleSeleneseCommand(final WebDriver driver, final String attributeLocator,
+                                           final String expectedValue) {
       String attributeValue = super.handleSeleneseCommand(driver, attributeLocator, null);
       Assert.assertEquals(expectedValue, attributeValue);
       return attributeValue;