This repository was archived by the owner on Jan 4, 2024. It is now read-only.
File tree 2 files changed +15
-7
lines changed
src/test/java/schulte/markus/seleniumstandalonechromespringboot/controller
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 10
10
<parent >
11
11
<groupId >org.springframework.boot</groupId >
12
12
<artifactId >spring-boot-starter-parent</artifactId >
13
- <version >1.5.7 .RELEASE</version >
13
+ <version >2.0.2 .RELEASE</version >
14
14
</parent >
15
15
<prerequisites >
16
16
<maven >3.3.9</maven >
21
21
<maven .compiler.target>1.8</maven .compiler.target>
22
22
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
23
23
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
24
- <selenium .version>3.6.0</selenium .version>
25
- <webdrivermanager .version>1.7.2</webdrivermanager .version>
26
- <docker-compose-rule-junit4 .version>0.32.1</docker-compose-rule-junit4 .version>
27
- <maven .checkstyle.plugin.version>2.17</maven .checkstyle.plugin.version>
24
+ <selenium .version>3.12.0</selenium .version>
25
+ <webdrivermanager .version>2.2.1</webdrivermanager .version>
26
+ <docker-compose-rule-junit4 .version>0.33.0</docker-compose-rule-junit4 .version>
27
+ <maven .checkstyle.plugin.version>3.0.0</maven .checkstyle.plugin.version>
28
+ <puppycrawl-checkstyle .version>8.9</puppycrawl-checkstyle .version>
28
29
</properties >
29
30
<repositories >
30
31
<repository >
81
82
<plugin >
82
83
<artifactId >maven-checkstyle-plugin</artifactId >
83
84
<version >${maven.checkstyle.plugin.version} </version >
85
+ <dependencies >
86
+ <dependency >
87
+ <groupId >com.puppycrawl.tools</groupId >
88
+ <artifactId >checkstyle</artifactId >
89
+ <version >${puppycrawl-checkstyle.version} </version >
90
+ </dependency >
91
+ </dependencies >
84
92
<configuration >
85
93
<includeTestSourceDirectory >true</includeTestSourceDirectory >
86
94
<configLocation >google_checks.xml</configLocation >
Original file line number Diff line number Diff line change 18
18
import org .openqa .selenium .WebElement ;
19
19
import org .openqa .selenium .remote .DesiredCapabilities ;
20
20
import org .openqa .selenium .remote .RemoteWebDriver ;
21
- import org .springframework .boot .context .embedded .LocalServerPort ;
22
21
import org .springframework .boot .test .context .SpringBootTest ;
22
+ import org .springframework .boot .web .server .LocalServerPort ;
23
23
import org .springframework .test .context .junit4 .SpringRunner ;
24
24
25
25
@ RunWith (SpringRunner .class )
@@ -84,7 +84,7 @@ public void setUp() throws MalformedURLException {
84
84
}
85
85
86
86
@ Test
87
- public void getHello () throws Exception {
87
+ public void getHello () {
88
88
driver .get (base .toString ());
89
89
90
90
final WebElement h1Element = driver .findElement (By .id ("h1-hello" ));
You can’t perform that action at this time.
0 commit comments