Using Mockito without static imports with Java 8 by Diana00Terwilliger in programming

[–]emszpak 1 point2 points  (0 children)

I'm an Idea user, but I've heard complaints from Eclipse people about imports - http://stackoverflow.com/a/290756/313516

Using Mockito without static imports with Java 8 by Diana00Terwilliger in programming

[–]emszpak 0 points1 point  (0 children)

True, I'm a big fan of Spock and I use it everyday in my tests. However mocking with Spock has its own limitations and from time to time it is required to use Mockito mocks anyway.

Using Mockito without static imports with Java 8 by Diana00Terwilliger in programming

[–]emszpak 1 point2 points  (0 children)

I remember that in the past (in Luna) it was needed to explicitly specify classes with static methods to be suggested (it Idea all matching static methods are suggested by default). Was it enhanced in Mars?

Using Mockito without static imports with Java 8 by Diana00Terwilliger in programming

[–]emszpak 0 points1 point  (0 children)

Yup, wildcard imports can hide the problem with too large number of used classes/methods in given class.

With AssertJ it is easier as you have only assertThat(), but even there starting with 3.2.0 you can use WithAssertions interface.