A short note on how Eclipse can improve your efficiency with class imports.
When we work with JUnit, Mockito we all the time use their key classes static methods like org.junit.Assert.assertThat, org.mockito.Mockito.mock and so on. Be honest it’s hard to deal with static imports in Eclipse.
But thanks to Eclipse Foundation Team we can tune the IDE easily with little effort by adding a set of useful types with static members or particular static members themselves to Preferences | Java | Editor | Content Assist | Favorites. For instance, that would be:
1 2 3 4
Also make sure that Use static imports is enabled on the Preferences | Java | Editor | Content Assist tab.