I would like to disable @EnableAsync when I run my integration tests.
I tried to override the configuration file which is annotated with @EnableAsync with a class with the same name in my test package but it does not work.
In this topic: Is it possible to disable Spring's @Async during integration test?
I have seen that:
You can... Create a test configuration or simply override the task executor with a SyncTaskExecutor
but I do not understand how to do.
Any advice ? Thanks