Skip to content

Commit 6072c95

Browse files
committed
Fix formatting
1 parent eef4b73 commit 6072c95

File tree

6 files changed

+41
-41
lines changed

6 files changed

+41
-41
lines changed

java/src/org/openqa/selenium/remote/service/DriverService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protected Map<String, String> getEnvironment() {
138138
}
139139

140140
protected URL getUrl(int port) throws IOException {
141-
return new URL(String.format(Locale.ROOT,"http://localhost:%d", port));
141+
return new URL(String.format(Locale.ROOT, "http://localhost:%d", port));
142142
}
143143

144144
protected Capabilities getDefaultDriverOptions() {

java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,18 @@ void canExecuteCdpCommands() {
206206
@NoDriverBeforeTest
207207
void shouldLaunchSuccessfullyWithArabicDate() {
208208
try {
209-
Locale arabicLocale = new Locale("ar", "EG");
210-
Locale.setDefault(arabicLocale);
209+
Locale arabicLocale = new Locale("ar", "EG");
210+
Locale.setDefault(arabicLocale);
211211

212-
int port = PortProber.findFreePort();
213-
ChromeDriverService.Builder builder = new ChromeDriverService.Builder();
214-
builder.usingPort(port);
215-
builder.build();
212+
int port = PortProber.findFreePort();
213+
ChromeDriverService.Builder builder = new ChromeDriverService.Builder();
214+
builder.usingPort(port);
215+
builder.build();
216216

217217
} catch (Exception e) {
218-
throw e;
218+
throw e;
219219
} finally {
220-
Locale.setDefault(Locale.US);
220+
Locale.setDefault(Locale.US);
221221
}
222222
}
223223
}

java/test/org/openqa/selenium/edge/EdgeDriverFunctionalTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,18 +200,18 @@ void canExecuteCdpCommands() {
200200
@NoDriverBeforeTest
201201
void shouldLaunchSuccessfullyWithArabicDate() {
202202
try {
203-
Locale arabicLocale = new Locale("ar", "EG");
204-
Locale.setDefault(arabicLocale);
203+
Locale arabicLocale = new Locale("ar", "EG");
204+
Locale.setDefault(arabicLocale);
205205

206-
int port = PortProber.findFreePort();
207-
EdgeDriverService.Builder builder = new EdgeDriverService.Builder();
208-
builder.usingPort(port);
209-
builder.build();
206+
int port = PortProber.findFreePort();
207+
EdgeDriverService.Builder builder = new EdgeDriverService.Builder();
208+
builder.usingPort(port);
209+
builder.build();
210210

211211
} catch (Exception e) {
212-
throw e;
212+
throw e;
213213
} finally {
214-
Locale.setDefault(Locale.US);
214+
Locale.setDefault(Locale.US);
215215
}
216216
}
217217
}

java/test/org/openqa/selenium/firefox/FirefoxDriverTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,18 +274,18 @@ void canSetContext() {
274274
@NoDriverBeforeTest
275275
void shouldLaunchSuccessfullyWithArabicDate() {
276276
try {
277-
Locale arabicLocale = new Locale("ar", "EG");
278-
Locale.setDefault(arabicLocale);
277+
Locale arabicLocale = new Locale("ar", "EG");
278+
Locale.setDefault(arabicLocale);
279279

280-
int port = PortProber.findFreePort();
281-
GeckoDriverService.Builder builder = new GeckoDriverService.Builder();
282-
builder.usingPort(port);
283-
builder.build();
280+
int port = PortProber.findFreePort();
281+
GeckoDriverService.Builder builder = new GeckoDriverService.Builder();
282+
builder.usingPort(port);
283+
builder.build();
284284

285285
} catch (Exception e) {
286-
throw e;
286+
throw e;
287287
} finally {
288-
Locale.setDefault(Locale.US);
288+
Locale.setDefault(Locale.US);
289289
}
290290
}
291291

java/test/org/openqa/selenium/ie/InternetExplorerDriverTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,18 @@ void testPersistentHoverCanBeTurnedOff() throws Exception {
149149
@NoDriverBeforeTest
150150
void shouldLaunchSuccessfullyWithArabicDate() {
151151
try {
152-
Locale arabicLocale = new Locale("ar", "EG");
153-
Locale.setDefault(arabicLocale);
152+
Locale arabicLocale = new Locale("ar", "EG");
153+
Locale.setDefault(arabicLocale);
154154

155-
int port = PortProber.findFreePort();
156-
InternetExplorerDriverService.Builder builder = new InternetExplorerDriverService.Builder();
157-
builder.usingPort(port);
158-
builder.build();
155+
int port = PortProber.findFreePort();
156+
InternetExplorerDriverService.Builder builder = new InternetExplorerDriverService.Builder();
157+
builder.usingPort(port);
158+
builder.build();
159159

160160
} catch (Exception e) {
161-
throw e;
161+
throw e;
162162
} finally {
163-
Locale.setDefault(Locale.US);
163+
Locale.setDefault(Locale.US);
164164
}
165165
}
166166

java/test/org/openqa/selenium/safari/SafariDriverTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,18 @@ public void canAttachDebugger() {
139139
@NoDriverBeforeTest
140140
void shouldLaunchSuccessfullyWithArabicDate() {
141141
try {
142-
Locale arabicLocale = new Locale("ar", "EG");
143-
Locale.setDefault(arabicLocale);
142+
Locale arabicLocale = new Locale("ar", "EG");
143+
Locale.setDefault(arabicLocale);
144144

145-
int port = PortProber.findFreePort();
146-
SafariDriverService.Builder builder = new SafariDriverService.Builder();
147-
builder.usingPort(port);
148-
builder.build();
145+
int port = PortProber.findFreePort();
146+
SafariDriverService.Builder builder = new SafariDriverService.Builder();
147+
builder.usingPort(port);
148+
builder.build();
149149

150150
} catch (Exception e) {
151-
throw e;
151+
throw e;
152152
} finally {
153-
Locale.setDefault(Locale.US);
153+
Locale.setDefault(Locale.US);
154154
}
155155
}
156156
}

0 commit comments

Comments
 (0)