IntelliJ: customizing generated test method naming
2 answers
You can easily change the test method template like this:
Step 1:
Create a test class and press ALTR + Insert on your keyboard and you will see a popup as shown in the following screenshot. Then press the right arrow key on your keyboard and the Edit Template menu opens. Then click on it.
Step 2:
Change the method template as needed and click ( For my reason it will be redirected to TestNG method template, but yours will be JUnit ).
Step 3:
When you insert the method with ALTR + Insert (shown in the first step) click on the Test Method menu, then it will generate the method like this:
+3
source to share