Skip to content

Commit 6cd25d0

Browse files
committed
[java] Setting small size tag to firefox driver unit tests
1 parent aec4c8c commit 6cd25d0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

java/client/test/org/openqa/selenium/firefox/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ LARGE_TESTS = [
88
]
99

1010
java_test_suite(
11-
name = "medium-tests",
12-
size = "medium",
11+
name = "small-tests",
12+
size = "small",
1313
srcs = glob(
1414
["*.java"],
1515
exclude = LARGE_TESTS,

java/client/test/org/openqa/selenium/firefox/FirefoxOptionsTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import static java.util.Collections.singleton;
2323
import static org.assertj.core.api.Assertions.assertThat;
2424
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
25+
import static org.assertj.core.api.Assertions.assertThatNoException;
2526
import static org.assertj.core.api.Assumptions.assumeThat;
2627
import static org.assertj.core.api.InstanceOfAssertFactories.LIST;
2728
import static org.assertj.core.api.InstanceOfAssertFactories.MAP;
@@ -261,7 +262,7 @@ public void shouldThrowAnExceptionIfSystemPropertyProfileDoesNotExist() {
261262
public void callingToStringWhenTheBinaryDoesNotExistShouldNotCauseAnException() {
262263
FirefoxOptions options =
263264
new FirefoxOptions().setBinary("there's nothing better in life than cake or peas.");
264-
options.toString();
265+
assertThatNoException().isThrownBy(options::toString);
265266
// The binary does not exist on this machine, but could do elsewhere. Be chill.
266267
}
267268

0 commit comments

Comments
 (0)