File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
src/test/java/org/woehlke/simpleworklist/userstories Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 363363 <groupId >org.springframework.boot</groupId >
364364 <artifactId >spring-boot-starter-test</artifactId >
365365 </dependency >
366+ <dependency >
367+ <groupId >org.springframework.security</groupId >
368+ <artifactId >spring-security-test</artifactId >
369+ <scope >test</scope >
370+ </dependency >
366371 <dependency >
367372 <groupId >org.postgresql</groupId >
368373 <artifactId >postgresql</artifactId >
798803 <groupId >org.apache.maven.plugins</groupId >
799804 <artifactId >maven-surefire-plugin</artifactId >
800805 <configuration >
801- <skipTests >true </skipTests >
806+ <skipTests >false </skipTests >
802807 </configuration >
803808 </plugin >
804809 </plugins >
Original file line number Diff line number Diff line change 11package org .woehlke .simpleworklist .userstories ;
22
3+ import lombok .extern .slf4j .Slf4j ;
4+ import org .junit .jupiter .api .Test ;
5+ import org .springframework .boot .test .context .SpringBootTest ;
6+ import org .springframework .boot .web .server .LocalServerPort ;
7+
8+ @ Slf4j
9+ @ SpringBootTest (webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT )
310public class F001ServerStartsTest {
11+
12+ @ LocalServerPort
13+ int randomServerPort ;
14+
15+ @ Test
16+ public void testStartup (){
17+ log .info ("testStartup" );
18+ }
419}
You can’t perform that action at this time.
0 commit comments