Mockito然后返回不起作用,返回Null
I am trying to mock the RestTemplate.exchange method. The main class is as follows:
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.Request...