Re: Testify + TestNG: more than one object marked as @ForComponents

2009-11-13 Thread Paul Field
You need to be very careful about calling tester.injectInto() yourself because the superclass TapestryTest is already doing that for you. It contains this code: @BeforeClass(alwaysRun=true) public final void processInjectAnnotation() { tester.injectInto(this); } So I would t

Re: Testify + TestNG: more than one object marked as @ForComponents

2009-11-13 Thread Ben Gidley
Augusto, I just fixed this by making the 'TapestryTester' not static. THis removes the issue. However this does seem to defeat some of the point of testify as we now have a lot slower tests are we will be initialising the tester for each test. Ben Gidley www.gidley.co.uk b...@gidley.co.uk On F

Testify + TestNG: more than one object marked as @ForComponents

2009-11-13 Thread Augusto Rodriguez
Hi All, I'm using testify to test my pages, but I can only run one test successfully and all the other tests, whether they are in another class or in the same class, fail with the message: Found more than one object marked as @ForComponents of type uk.co.test.services.PageInformation It looks