Re: testify forcomponents problem

2009-12-19 Thread Yury Luneff
ok, that's a bit of great clarification :) but here is what i'm having now: public class SmokeTest extends ServTest { @ForComponents public HttpServletRequest request; @Override protected void doSetUp() { request = createNiceMock(HttpServletRequest.class); expect(reque

Re: testify forcomponents problem

2009-12-19 Thread Paul Field
Hi Yury, I don't really understand what you are trying to actually test with your test. Anyway, let me explain why you are seeing the behaviour that you are seeing. In Testify, you create the IOC registry and that registry remains constant throughout all the tests. Testify does not let you mock