I have a method annotated with @Async
say
@Async
public void makeFood() {}
but I'm just trying to test the logic of that method. Is it possible to test it synchronously?
Yes, as long as your configuration does not have @EnableAsync
, the method will be executed synchronously.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With