java - Is it possible to disable Spring's @Async during unit test? -


i have method annotated @async say

@async public void makefood() {} 

but i'm trying test logic of method. possible test synchronously?

yes, long configuration not have @enableasync, method executed synchronously.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -