Skip to content

Commit 0af8beb

Browse files
committed
applying format
1 parent 8b8ab48 commit 0af8beb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

java/test/org/openqa/selenium/grid/node/relay/RelayOptionsTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ void protocolVersionThrowsConfigException() {
137137
Config config = new TomlConfig(new StringReader(String.join("\n", rawConfig)));
138138
RelayOptions relayOptions = new RelayOptions(config);
139139
assertThatExceptionOfType(ConfigException.class)
140-
.isThrownBy(
141-
relayOptions::getServiceProtocolVersion)
140+
.isThrownBy(relayOptions::getServiceProtocolVersion)
142141
.withMessageContaining("Unsupported protocol version provided: HTTP/0.9");
143142
}
144143

java/test/org/openqa/selenium/grid/server/BaseServerOptionsTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ void externalUriFailsForNonUriStrings() {
5252
BaseServerOptions options =
5353
new BaseServerOptions(new MapConfig(Map.of("server", Map.of("external-url", "not a URL"))));
5454

55-
Exception exception =
56-
assertThrows(
57-
RuntimeException.class,
58-
options::getExternalUri);
55+
Exception exception = assertThrows(RuntimeException.class, options::getExternalUri);
5956

6057
assertThat(exception.getMessage())
6158
.as("External URI must be parseable as URI.")

0 commit comments

Comments
 (0)