Closed GoogleCodeExporter closed 8 years ago
You have created 4 mock objects in your test. Besides, I think you should use
partial mock here:
def deploy = new Deploy()
def mockDeploy = mock(deploy)
ordered {
mockDeploy.checkout()
mockDeploy.executeMaven('clean')
mockDeploy.executeMaven('package')
mockDeploy.executeMaven('install')
}
play {
deploy.executeDeploy()
}
Original comment by JohnnyJianHY
on 18 Apr 2011 at 2:33
BTW, there is a bug of using ordered and partial mock in the same time in gmock
0.8.0. You should use gmock 0.8.1 instead.
Original comment by JohnnyJianHY
on 18 Apr 2011 at 2:42
Original comment by JohnnyJianHY
on 28 Apr 2011 at 12:39
Original issue reported on code.google.com by
sussegad...@gmail.com
on 18 Apr 2011 at 2:24