Thursday, March 8, 2012

Static Import Autocomplete in Eclipse

I'm not really a fan of typing out Assert.whatever or Mockito.thisthing in my test classes, but by default eclipse doesn't give you the option of picking static methods by hitting ctrl+space, but there is good news:  you can add it!

Window->Preferences->Java->Editor->Favorites
Here are my favorites for easier testing and mocking.


No comments:

Post a Comment