keeganwitt / gmock

Automatically exported from code.google.com/p/gmock
6 stars 2 forks source link

Clear GMockTestCase.mocks before each test #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Override the setUp method and assign "mocks = []" in it.

Original issue reported on code.google.com by JohnnyJianHY on 1 Oct 2008 at 7:06

GoogleCodeExporter commented 9 years ago
Junit recreate the test class for each individuals test so we shouldn't have to 
do
worry about that.

We can't override the setup method as user would always have to thing about 
hading
the super.setup() call.

We can't clear the mocks after the play closure as people can use multiple play 
if
they which.

Original comment by julien.g...@gmail.com on 9 Oct 2008 at 6:35

GoogleCodeExporter commented 9 years ago
I'm sorry for my mistake. Close this issue.

Original comment by JohnnyJianHY on 10 Oct 2008 at 1:16