keeganwitt / gmock

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

static mock doesn't work with groovy @CompileStatic, version 2.1.1 #136

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Upgrade groovy version to 2.1.1
2. Create a gmock test which is having a static mock.
3. The test will simply ignore the expectation of static mock.

What is the expected output? What do you see instead?
-should work as normal, when remove Compile static, the unit test is just 
working.

What version of the product are you using? On what operating system?
-Groovy 2.1.1 , Gmock 0.8.2

Please provide any additional information below.

Original issue reported on code.google.com by real...@gmail.com on 21 Mar 2013 at 10:53

GoogleCodeExporter commented 8 years ago
This needs PowerMock support.

Original comment by JohnnyJianHY on 22 Mar 2013 at 3:21