Fixed last tests

This commit is contained in:
Nanne Baars 2019-09-16 07:43:22 +02:00
parent f774364461
commit 2b01cbcb75

View File

@ -25,7 +25,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
public class CSRFFeedbackTest extends LessonTest {
@Before
public void setup() throws Exception {
public void setup() {
CSRF csrf = new CSRF();
when(webSession.getCurrentLesson()).thenReturn(csrf);
this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();