DEV Community

Discussion on: Mockito: Passing in any() and a literal to the same method

 
nutterzuk profile image
Stephen Nutbrown

I usually do it straight away for mockito and junit methods. The reason being that although it may not be necessary in that class, generally across the project you'll be using mockito and junit in every test class, so it becomes a norm. It's a bit off if you have some tests statically importing it and others not, so realising that I'm going to use it a lot, I just go for it :).