Fixed last tests
This commit is contained in:
parent
f774364461
commit
2b01cbcb75
@ -25,7 +25,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
|||||||
public class CSRFFeedbackTest extends LessonTest {
|
public class CSRFFeedbackTest extends LessonTest {
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setup() throws Exception {
|
public void setup() {
|
||||||
CSRF csrf = new CSRF();
|
CSRF csrf = new CSRF();
|
||||||
when(webSession.getCurrentLesson()).thenReturn(csrf);
|
when(webSession.getCurrentLesson()).thenReturn(csrf);
|
||||||
this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
|
this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user