adding security for testing purpose

This commit is contained in:
DOHA
2018-12-31 16:50:19 +02:00
parent 0a64e26a8f
commit f757eba28b
7 changed files with 78 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ import spock.lang.Title
@Title("Application Specification")
@Narrative("Specification which beans are expected")
@SpringBootTest
class LoadContextTest extends Specification {
class LoadContextIntegrationTest extends Specification {
@Autowired(required = false)
private WebController webController

View File

@@ -12,9 +12,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
@WebMvcTest
class WebControllerTest extends Specification {
@AutoConfigureMockMvc(secure=false)
@WebMvcTest()
class WebControllerIntegrationTest extends Specification {
@Autowired
private MockMvc mvc