I will look for a mockery of constructor calls in a proven method. Something like http://code.google.com/p/powermock/wiki/MockConstructor
The problem is that I work under JDK 1.4 (this is a client requirement). I tried using Retrotranslator for PowerMock, but it seems I canβt say anything about the need to use @RunWith (PowerMockRunner.class) and @PrepareForTest annotations to run the example.
Can someone advise me on a mocking structure that works under JDK 1.4, and can make fun of building new facilities?
source
share