Answer the question
In order to leave comments, you need to log in
How to dunk bean before ContextRefreshedEvent?
in general, you need to test a service that has
@EventListener
public void handleContextRefresh(ContextRefreshedEvent event) {
Answer the question
In order to leave comments, you need to log in
I'd rather make a mock http server (MockServer) that RestTemplate accesses.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question