Include security configuration context in test sample

Fixes: gh-7688
This commit is contained in:
Eleftheria Stein 2019-12-02 10:13:24 +01:00
parent d8d59e97ac
commit 55f1c695e1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ NOTE: Spring Security's testing support requires spring-test-4.1.3.RELEASE or gr
import static org.springframework.security.test.web.servlet.setup.SecurityMockMvcConfigurers.*; import static org.springframework.security.test.web.servlet.setup.SecurityMockMvcConfigurers.*;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration @ContextConfiguration(classes = SecurityConfig.class)
@WebAppConfiguration @WebAppConfiguration
public class CsrfShowcaseTests { public class CsrfShowcaseTests {