使用我的Mockito麻煩了下列要求:和的Mockito Mockito.any(Map.class)
Mockito.when(restOperationMock.exchange(
Mockito.anyString(),
Mockito.any(HttpMethod.class),
Mockito.any(HttpEntity.class),
Mockito.eq(CustomerResponse.class),
**Mockito.anyMap()**)).
thenReturn(re);
問題是wasnt攔截,因爲我是用Mockito.any(Map.class)的方法,而不是Mockito.anyMap()和我傳遞的參數是一個HashMap。 Mockito.any(Map.class)和Mockito.anyMap()之間有什麼區別?