Hi! I'll looking about mocking of constructor calls in tested method. Something like http://code.google.com/p/powermock/wiki/MockConstructor
The problem is that I'm working under JDK 1.4 (this is requirement of customer). I tried to use Retrotranslator for PowerMock, but it seems that I can do nothing about required use of annotations @RunWith(PowerMockRunner.class) and @PrepareForTest for running example.
Maybe somebody can advise me the mocking framework which works under JDK 1.4 and can mock construction of new objects?