eclipse autocomplete junit asserts

  1. Go to Window > Preferences > Java > Editor > Content Assist > Favorites .
  2. Click New Type . This brings up a dialog where you can enter the fully qualified type.
  3. Enter org.junit.Assert and click Ok (you could also use the Browse… if you want to search for the type). Eclipse will add an entry to the list which reads org.junit.Assert.* .
  4. Click Ok on the preferences dialog to save and close the preferences.

你可能感兴趣的:(autocomplete)