File tree Expand file tree Collapse file tree
main/java/org/joinfaces/example
test/java/org/joinfaces/example Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11plugins {
22 id " java"
3- id ' org.springframework.boot' version ' 3.5.7 '
3+ id ' org.springframework.boot' version ' 4.0.0 '
44}
55
66java {
@@ -14,10 +14,12 @@ repositories {
1414}
1515
1616dependencies {
17- implementation platform(' org.joinfaces:joinfaces-platform:5.5.7 ' )
17+ implementation platform(' org.joinfaces:joinfaces-platform:6.0.0 ' )
1818 implementation ' org.joinfaces:faces-spring-boot-starter'
1919
2020 testImplementation " org.springframework.boot:spring-boot-starter-test"
21+ testImplementation " org.springframework.boot:spring-boot-resttestclient"
22+ testImplementation " org.springframework.boot:spring-boot-starter-restclient-test"
2123}
2224
2325tasks. named(' test' ) {
Original file line number Diff line number Diff line change 22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
5- import org .springframework .boot .web .servlet .ServletComponentScan ;
5+ import org .springframework .boot .web .server . servlet . context .ServletComponentScan ;
66
77/**
88 * @author Lars Grefer
Original file line number Diff line number Diff line change 22
33import org .junit .jupiter .api .Test ;
44import org .springframework .beans .factory .annotation .Autowired ;
5+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
56import org .springframework .boot .test .context .SpringBootTest ;
6- import org .springframework .boot .test . web . client .TestRestTemplate ;
7+ import org .springframework .boot .resttestclient .TestRestTemplate ;
78import org .springframework .http .ResponseEntity ;
89
910import static org .assertj .core .api .Assertions .assertThat ;
1516 classes = JarExampleApplication .class ,
1617 webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT
1718)
19+ @ AutoConfigureTestRestTemplate
1820public class JarExampleApplicationTest {
1921
2022 @ Autowired
You can’t perform that action at this time.
0 commit comments