changing module settings,
adding unit testing for controllers
This commit is contained in:
@@ -25,7 +25,6 @@ import java.util.UUID;
|
||||
public class EventController {
|
||||
|
||||
private final EtrackService etrackService;
|
||||
private final String sortBy = "messageId";
|
||||
private final List<Event> eventList = new LinkedList<>();
|
||||
|
||||
@GetMapping("/etrack/{uuid}")
|
||||
@@ -44,14 +43,6 @@ public class EventController {
|
||||
return "etrack";
|
||||
}
|
||||
|
||||
@PostMapping(value = "/etrack/{uuid}", params = {"sortBy"})
|
||||
public String sortBy(@Valid EventRequestDto eventRequestDto, final Model model, BindingResult bindingResult,
|
||||
@PathVariable UUID uuid){
|
||||
model.addAttribute("clientUUID", uuid);
|
||||
populateModelWithLists(model, eventRequestDto, false);
|
||||
return "etrack";
|
||||
}
|
||||
|
||||
private void populateModelWithLists(Model model, EventRequestDto eventRequestDto, boolean updateList){
|
||||
if (updateList){
|
||||
eventList.clear();
|
||||
|
||||
Reference in New Issue
Block a user