How to make fun of the construction of new facilities under JDK 1.4?

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?

+3
source share

Source: https://habr.com/ru/post/1735940/


All Articles