Take a look at org.testng.remote.RemoteTestNG, however you will need to write an xml set for your tests, for example:
<suite name="Default suite"> <test verbose="2" name="Default test"> <classes> <class name="com...service.UserServiceImplTest"/> </classes> </test> </suite>
Another entry point could be the new org.testng.internal.TestMethodWorker (...). run (), but you will have to look at the code to determine the constructor arguments that need to be set.
Perhaps other, more convenient entry points are available depending on your needs; I suggest starting some test in debug mode, putting a breakpoint in your test and going down the stack.
Stijn geukens
source share