How to find the mockite method according to the package?

Asked

Viewed 23 times

0

I’m trying to find the mockito library according to the package below;

import static org.mockito.ArgumentMatchers.any;

I’ve tried these jars libraries, but no results;

  • mockito-core-1.9.5.jar
  • mockito-all-1.10.16.jar

Please, I need to know the right library to find this method any

1 answer

1


Any Mockite version equal to or greater than 2.1.0 as described in release Notes:

The Mockito class does not inherit from Matchers class anymore. Instead Mockito and Matchers classes Both inherit from Argumentmatchers. Also Matchers is now deprecated.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.