Use try with resources instead of try (#921)

* Use try with resources instead of try

* Remove unused lesson

* Remove unused fields
This commit is contained in:
avivmu
2021-01-13 19:21:04 +02:00
committed by GitHub
parent b219854f81
commit 74b218b2a7
13 changed files with 32 additions and 265 deletions

View File

@ -26,7 +26,7 @@ public class SSRFTest1 extends LessonTest {
private SSRF ssrf;
@Before
public void setup() throws Exception {
public void setup() {
when(webSession.getCurrentLesson()).thenReturn(ssrf);
this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
}

View File

@ -48,7 +48,7 @@ public class SSRFTest2 extends LessonTest {
private SSRF ssrf;
@Before
public void setup() throws Exception {
public void setup() {
when(webSession.getCurrentLesson()).thenReturn(ssrf);
this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
}