Skip to content

Commit f1631c9

Browse files
committed
Merge pull request #27947 from cdalexndr
* pr/27947: Polish "Allow configuring WebDriver with TestNG" Allow configuring WebDriver with TestNG Closes gh-27947
2 parents edba364 + e746dfa commit f1631c9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebDriverScope.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,11 +36,15 @@
3636
* {@link WebDriverTestExecutionListener}.
3737
*
3838
* @author Phillip Webb
39+
* @since 3.0.0
3940
* @see WebDriverContextCustomizerFactory
4041
* @see WebDriverTestExecutionListener
4142
*/
42-
class WebDriverScope implements Scope {
43+
public class WebDriverScope implements Scope {
4344

45+
/**
46+
* WebDriver bean scope name.
47+
*/
4448
public static final String NAME = "webDriver";
4549

4650
private static final String WEB_DRIVER_CLASS = "org.openqa.selenium.WebDriver";

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebDriverTestExecutionListener.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,10 +26,11 @@
2626
* {@link TestExecutionListener} to reset the {@link WebDriverScope}.
2727
*
2828
* @author Phillip Webb
29+
* @since 3.0.0
2930
* @see WebDriverContextCustomizerFactory
3031
* @see WebDriverScope
3132
*/
32-
class WebDriverTestExecutionListener extends AbstractTestExecutionListener {
33+
public class WebDriverTestExecutionListener extends AbstractTestExecutionListener {
3334

3435
@Override
3536
public int getOrder() {

0 commit comments

Comments
 (0)