Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Go into XML and set to spaces and 120 width, 4 indentation

Character Configuration

Go to Preferences->General->Editors→Text Editors

Set tab width to "4"

Check "Insert spaces for tabs"

Go to Preferences->General→Workspace

Under "Text file encoding", select the "other" radio button, and choose "UTF-8" from the drop-down

Under "New text file line delimiter", select the "other" radio button and choose "Unix" from the drop-down

Removing White Space

Go to Preferences->java->Editor->Save Actions

...

Check "all Lines"

Click OK

Uncheck everything else in the other tabs

Click "Apply and Close"

Organize Imports Alphabetically

Go to Preferences->Java→Code Style→Organize Imports

Select all of the items and click "Remove"

Configuring Content Assist (so that Eclipse will provide suggestions for "import" statements)

Go to Preferences->Java->Editor→Content Assist→Favorites

Click "New type" and add "org.assertj.core.api.Assertions"

Click "New type" and add "org.mockito.Matchers"

Click "New type" and add "org.mockito.Mockito"

Setting up the ONAP Checkstyle in Eclipse

...