Static imports are very nice, especially in tests, when working with JUnit, Hamcrest, Mockito, or the like. It comes in very handy, when Eclipse can automatically add these imports for you if you only type the desired method’s name. This requires a little configuration. I show you!
Share this:









