What steps will reproduce the problem?
1. Define an enum class with a method that will call the constructor of another
class.
2. Define a test for this enum (mock the constructor call) and mark it to be
tested with @PrepareForTest.
3. Run the test.
What is the expected output? What do you see instead?
I expect the constructor call to be replaced by the mock, but it is just
executed normally.
What version of the product are you using? On what operating system?
1.6.2 on Windows
Please provide any additional information below.
I have attached a code example from the greenmail project.
Original issue reported on code.google.com by Chessra...@gmail.com on 11 Jul 2015 at 8:01
Original issue reported on code.google.com by
Chessra...@gmail.com
on 11 Jul 2015 at 8:01Attachments: