15.04.2009
Using static methods with content assist
Frameworks like JUnit and Hamcrest are offering APIs that are to be used with Java static imports so you can write “DSL-like” code:
assertThat(Math.sqrt(-1), is(notANumber()));
You can add classes offering such static methods in Preferences > Java > Editor > Content Assist > Favorites:

These methods will be proposed in content assist automatically:


