BAEL-3802: Upgrade spring-boot-testing to Spring Boot 2.2.2 (#8779)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package com.baeldung.boot
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
|
||||
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest
|
||||
import org.springframework.boot.test.context.SpringBootTest
|
||||
import org.springframework.test.web.servlet.MockMvc
|
||||
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders
|
||||
import org.springframework.test.web.servlet.result.MockMvcResultMatchers
|
||||
@@ -12,8 +14,9 @@ import spock.lang.Title
|
||||
|
||||
@Title("WebController Specification")
|
||||
@Narrative("The Specification of the behaviour of the WebController. It can greet a person, change the name and reset it to 'world'")
|
||||
@AutoConfigureMockMvc(secure=false)
|
||||
@WebMvcTest()
|
||||
@SpringBootTest
|
||||
@AutoConfigureMockMvc
|
||||
@EnableAutoConfiguration(exclude= SecurityAutoConfiguration.class)
|
||||
class WebControllerTest extends Specification {
|
||||
|
||||
@Autowired
|
||||
|
||||
Reference in New Issue
Block a user