Skip to content

Commit 9ec42c7

Browse files
Checkstyle fixes
1 parent 0ab722c commit 9ec42c7

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/e2eFlutterTest/java/io/appium/java_client/android/BaseFlutterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class BaseFlutterTest {
3030

3131
private static AppiumDriverLocalService service;
3232
protected static FlutterAndroidDriver driver;
33-
protected static final By loginButton = AppiumBy.flutterText("Login");
33+
protected static final By LOGIN_BUTTON = AppiumBy.flutterText("Login");
3434

3535
/**
3636
* initialization.

src/e2eFlutterTest/java/io/appium/java_client/android/CommandTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,35 @@
1212

1313
class CommandTest extends BaseFlutterTest {
1414

15-
private static final AppiumBy.FlutterBy messageFieldLocator = AppiumBy.flutterKey("message_field");
16-
private static final AppiumBy.FlutterBy toggleButtonLocator = AppiumBy.flutterKey("toggle_button");
15+
private static final AppiumBy.FlutterBy MESSAGE_FIELD = AppiumBy.flutterKey("message_field");
16+
private static final AppiumBy.FlutterBy TOGGLE_BUTTON = AppiumBy.flutterKey("toggle_button");
1717

1818
@Test
1919
public void testWaitCommand() {
20-
WebElement loginButton = driver.findElement(BaseFlutterTest.loginButton);
20+
WebElement loginButton = driver.findElement(BaseFlutterTest.LOGIN_BUTTON);
2121
loginButton.click();
2222
openScreen("Lazy Loading");
2323

24-
WebElement messageField = driver.findElement(messageFieldLocator);
25-
WebElement toggleButton = driver.findElement(toggleButtonLocator);
24+
WebElement messageField = driver.findElement(MESSAGE_FIELD);
25+
WebElement toggleButton = driver.findElement(TOGGLE_BUTTON);
2626

2727
assertEquals(messageField.getText(), "Hello world");
2828
toggleButton.click();
2929
assertEquals(messageField.getText(), "Hello world");
3030

31-
WaitParameter waitParameter = new WaitParameter().setLocator(messageFieldLocator);
31+
WaitParameter waitParameter = new WaitParameter().setLocator(MESSAGE_FIELD);
3232

3333
driver.waitForInVisible(waitParameter);
34-
assertEquals(0, driver.findElements(messageFieldLocator).size());
34+
assertEquals(0, driver.findElements(MESSAGE_FIELD).size());
3535
toggleButton.click();
3636
driver.waitForVisible(waitParameter);
37-
assertEquals(1, driver.findElements(messageFieldLocator).size());
37+
assertEquals(1, driver.findElements(MESSAGE_FIELD).size());
3838
assertEquals(messageField.getText(), "Hello world");
3939
}
4040

4141
@Test
4242
public void testScrollTillVisibleCommand() {
43-
WebElement loginButton = driver.findElement(BaseFlutterTest.loginButton);
43+
WebElement loginButton = driver.findElement(BaseFlutterTest.LOGIN_BUTTON);
4444
loginButton.click();
4545
openScreen("Vertical Swiping");
4646

src/e2eFlutterTest/java/io/appium/java_client/android/FinderTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public void testFlutterText() {
3535

3636
@Test
3737
public void testFlutterTextContaining() {
38-
WebElement loginButton = driver.findElement(BaseFlutterTest.loginButton);
38+
WebElement loginButton = driver.findElement(BaseFlutterTest.LOGIN_BUTTON);
3939
loginButton.click();
4040
assertEquals(driver.findElement(AppiumBy.flutterTextContaining("Vertical")).getText(),
4141
"Vertical Swiping");
4242
}
4343

4444
@Test
4545
public void testFlutterSemanticsLabel() {
46-
WebElement loginButton = driver.findElement(BaseFlutterTest.loginButton);
46+
WebElement loginButton = driver.findElement(BaseFlutterTest.LOGIN_BUTTON);
4747
loginButton.click();
4848
openScreen("Lazy Loading");
4949

0 commit comments

Comments
 (0)