Activate Decoration of classes

Choose WINDOW → PREFERENCES → GENERAL → APPEARANCE → LABEL DECORATIONS and activate "Decorate Classes with TestCase".

Enter your preferences

Before you can start you have to configure some preferences.

If the source folder for your preferences is not named "junit" you have to enter the name of your test source folder.

By default MoreUnit expects your test cases to be named with the suffix "Test". For example if a class is named HelloWorld then the test case should be named HelloWorldTest. If your suffix differs from this default you have to enter your choice here. Note that you can enter several suffixes. You can define prefixes for your test cases as well.

In some projects package prefixes/suffixes are used (e.g. tests of classes in package com.foo.* are saved at test.com.foo.*/com.foo.test.*), which can be configured as well.

Enter your project specific preferences (optional)

If you have sourced out tests to another project you will have to define project specific settings. Select the project and open PROPERTIES → MOREUNIT. Then choose the project which contains the tests for the underlying project.

If you have other settings that differ depending on the projects in your workspace you can define them under PROPERTIES → MOREUNIT → OTHER.

Start coding

Configuration is finished. Start coding :) Switch between class/test case or method/test method with the shortcut "Ctrl" + "J".