I don't use TestNG. I had a class extending JUnit TestCase, with a setUp method. I did introduce field inside a test method, chose to instantiate in setUp method, and IntelliJ created this method at the end of the file:
The @org.testng... annotation is marked red because I don't use testNG and its libraries are not in the project.
Description
I don't use TestNG. I had a class extending JUnit TestCase, with a setUp method. I did introduce field inside a test method, chose to instantiate in setUp method, and IntelliJ created this method at the end of the file: