Skip to content

Commit

Permalink
Format WebDriverManager test
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Nov 2, 2023
1 parent e677e10 commit 8d5d89c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ void avoidExternalConnections() {

@DisplayName("download")
@ParameterizedTest(name = "with driver version {0} should download version {1}")
@ValueSource(strings = {"123", ".123"})
@ValueSource(strings = { "123", ".123" })
void download(String driverVersion) throws IOException {
String expected = "expected";
String cleanDriverVersion = "123";

when(config.isAvoidExternalConnections()).thenReturn(true);

when(downloader.download(new URL(DUMMY_URL), cleanDriverVersion, "dummy", null))
.thenReturn(expected);
when(downloader.download(new URL(DUMMY_URL), cleanDriverVersion,
"dummy", null)).thenReturn(expected);

assertEquals(expected, webDriverManager.download(driverVersion));
}
Expand Down

0 comments on commit 8d5d89c

Please sign in to comment.