Answer the question
In order to leave comments, you need to log in
Mockito. Is it possible to lock a method call inside another method?
There is an endpoint:
@PostMapping("/some/endpoint")
public void storeData(@Valid @RequestBody SomeMessageDTO data) {
UUID id = data.getDeviceId();
validateDeviceAccess(id);
this.saveData(data);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question