In this appendix, we explain how existing JUnit 3 tests can be migrated to TestNG. Whether you choose to use the command line or an IDE, the migration tools will typically perform the following operations on existing tests:
@Testto all public methods whose names start with
The tool modifies your source files, but none of these changes alter the code inside test methods in any way, which makes this process fairly nonintrusive. You still have the choice of not overwriting your sources if you want to verify the results yourself (this is described below).
JUnitConverter is a tool ...