- Place the cursor at the end of the class name.
- Press Alt + Enter
- Click create test and choose the latest JUnit version. If JUnit is not in the module, press Fix
- Use the JUnit library that comes with IntelliJ and check all the methods you want to test
- Go to project structure and set the scope to compile
![]() |
| The cursor should be exactly at the end of the class name |
![]() |
| Alt-Enter pressed |
![]() |
| Fix button shown up |
![]() |
| choose IntelliJ's JUnit distribution |
![]() |
| check the boxes and press ok! |






No comments:
Post a Comment