> > I have been playing with Testng and the Testify library but i am > > having a small issue. It seems that the injection of services occurs > > after the @BeforeSuite. > > > However, it does seem reasonable to process the @Inject annotations at the > start of the TestNG suite, so the latest Testify snapshot does that...
> I'm not very > clear about how all the TestNG features interact and exactly what happens > with instances of test classes so I don't know if there are any unpleasant > side effects of this change - so please let me know! I've done some more testing and discovered that @BeforeSuite doesn't work with inheritance, so I've changed Testify to process @Inject annotations @BeforeClass. It is relatively simple to get @Inject processed yourself, you just call tester.injectInto(this) in your @BeforeSuite method. I've updated the documentation to give an example: http://tapestry.formos.com/nightly/tapestry-testify/#TestNG - Paul --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.