-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLDR-17316 cldr-apps-webdriver Java formatting with spotless (#41)
-Add toggleOffOn in pom.xml (the cldr project does not have that) -Add spotless:on and spotless:off comments in SurveyDriverData.java, replacing prettier-ignore -Other changes are only formatting results of running mvn spotless:apply
- Loading branch information
Showing
7 changed files
with
361 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
377 changes: 222 additions & 155 deletions
377
src/test/java/org/unicode/cldr/surveydriver/SurveyDriver.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,15 @@ public class SurveyDriverCredentials { | |
* "[email protected]" | ||
*/ | ||
private static final String EMAIL_AT_DOMAIN = "@cldr-apps-webdriver.org"; | ||
|
||
private static final String EMAIL_PREFIX = "driver-"; | ||
|
||
/** | ||
* cldr-apps-webdriver/src/test/resources/org/unicode/cldr/surveydriver/surveydriver.properties | ||
* -- not in version control; contains a line WEBDRIVER_PASSWORD=... | ||
*/ | ||
private static final String PROPS_FILENAME = "surveydriver.properties"; | ||
|
||
private static final String PROPS_PASSWORD_KEY = "WEBDRIVER_PASSWORD"; | ||
private static String webdriverPassword = null; | ||
|
||
|
@@ -27,8 +29,8 @@ private SurveyDriverCredentials(String email) { | |
} | ||
|
||
/** | ||
* Get credentials for logging in as a particular user depending on which Selenium slot | ||
* we're running on. | ||
* Get credentials for logging in as a particular user depending on which Selenium slot we're | ||
* running on. | ||
*/ | ||
public static SurveyDriverCredentials getForUser(int userIndex) { | ||
String email = EMAIL_PREFIX + userIndex + EMAIL_AT_DOMAIN; | ||
|
@@ -43,7 +45,8 @@ public String getPassword() { | |
if (webdriverPassword != null) { | ||
return webdriverPassword; | ||
} | ||
final InputStream stream = SurveyDriverCredentials.class.getResourceAsStream(PROPS_FILENAME); | ||
final InputStream stream = | ||
SurveyDriverCredentials.class.getResourceAsStream(PROPS_FILENAME); | ||
if (stream == null) { | ||
throw new RuntimeException("File not found: " + PROPS_FILENAME); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.