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?
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.