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

@ -34,8 +34,6 @@ import org.springframework.beans.factory.annotation.Autowired;
public abstract class AssignmentEndpoint {
@Autowired
private UserTrackerRepository userTrackerRepository;
@Autowired
private WebSession webSession;
@Autowired

View File

@ -53,12 +53,6 @@ public class LabelServiceTest {
@Autowired
public MockMvc mockMvc;
@MockBean
private Course course;
@MockBean
private UserService userService;
@MockBean
private LessonTrackerInterceptor interceptor;
@Test
@WithMockUser(username = "guest", password = "guest")