| Issue 1: | Converting a junit project to TestNG should generate a static import. |
1 of 65
Next ›
|
| 4 people starred this issue and may be notified of changes. | Back to list |
In eciplse I use the ctl-1 to convert my JUnit test class into a TestNG test class. The generated code usually includes the statement: import org.testng.AssertJUnit; However to make my code work in Java 5.0 I need to change the import to import static org.testng.AssertJUnit.*; Since the converter already knows that my target environemnt in Java 5.0 I think it should generate the import that way in the first place. (submited by Paul Mendelson http://jira.opensymphony.com/browse/TESTNG-58)
Sep 2, 2006
Project Member
#1
the.mind...@gmail.com
Oct 13, 2010
There are the usual pro's and con's with Statics. It would be great if the quick fix gave you the option of static and non-static imports Thanks For the great work Cedric! |