#97 Incorrect method is used for mock initialization for TestNG

Version 3.0.0.02
closed-fixed
mock (6)
5
2013-04-05
2012-12-11
No

When a TestNG test is generated with Mockito mocks, an incorrect method MockitoAnnotations.init(this) is used for initializing the mocks in @BeforeMethod method. It should use MockitoAnnotations.initMocks(this); MoreUnit ver. 3.0.0.02

Discussion

  • Woops, looks like we missed this report :-\ Thanks for it Andrei !

    It will be fixed in version 3.0.2

     
    • status: open --> closed-fixed