ahmaddarawshi / powermock

Automatically exported from code.google.com/p/powermock
0 stars 0 forks source link

State cleanup in TestNG runner #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We need to cleanup MockRepository state after each test method in the
testng runner

Original issue reported on code.google.com by johan.ha...@gmail.com on 11 Sep 2009 at 10:40

GoogleCodeExporter commented 9 years ago
If we cannot find a way to do it from within the testNG runner we should create 
a
class from which you can inherit.

Original comment by johan.ha...@gmail.com on 11 Sep 2009 at 12:58

GoogleCodeExporter commented 9 years ago
This class could be generated programmatically from the PowerMockObjectFactory 
using
CgLib. The class should contain a method annotated with @AfterTest. 

Original comment by johan.ha...@gmail.com on 11 Sep 2009 at 3:28

GoogleCodeExporter commented 9 years ago
Implemented using the proxy approach

Original comment by johan.ha...@gmail.com on 11 Sep 2009 at 4:57