History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-22665
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Anna Kozlova
Reporter: Keith Lea
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

"Introduce field" with "instantiate in setUp()" ignores existing setUp method and adds TestNG annotation

Created: 17 Oct 07 01:39   Updated: 06 Dec 07 18:53
Component/s: Unit Testing. TestNG
Fix Version/s: Selena 7.0.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,346
Fixed in build: 7,507
Severity: High


 Description  « Hide
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:
@org.testng.annotations.BeforeMethod
  protected void setUp() throws Exception {
    super.setUp();
    logger = control.createMock(ToolsLogger.class);
  }

The @org.testng... annotation is marked red because I don't use testNG and its libraries are not in the project.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.