To create stub test methods in JUnit test classes, you can use the IntelliJ IDEA code generation feature.
To create a test class with a complete set of test methods and fixtures, use the Create Test intention action.
- Open the corresponding JUnit test class in the editor.
- Place the cursor where you want a new test method to be generated.
- Press ⌘N, ⌃⏎, ⌘N or ⌃⏎⌃N, ⌃⏎, ⌃N or ⌃⏎⌘N, ⌃⏎, ⌘N or ⌃⏎^ N, ⌥ Insert, ⌃N or ⌃N⌥ Insert and select Test Method from the Generate menu.