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:
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user