Closed GoogleCodeExporter closed 9 years ago
Thanks for this extremely details report. We'll investigate it.
Original comment by julien.g...@gmail.com
on 3 Mar 2009 at 11:16
I have had a look at the test, it seems that you didn't use gmock correctly. You
should setup the expectations first(outside the play closure), and then run the
test
inside the play closure.
So, instead of
def notifi = mock(com.droolsgrails.Notification)
def objList = [ notifi ]
def globalList = []
def rule = createDummyRule()
droolsService.fireRule(rule, objList, globalList)
it should be
def notifi = mock(com.droolsgrails.Notification)
// expectations of notifi can be set here
def objList = [ notifi ]
def globalList = []
def rule = createDummyRule()
play {
droolsService.fireRule(rule, objList, globalList)
}
I changed the test as above, then it passed.
Original comment by JohnnyJianHY
on 4 Mar 2009 at 7:50
Thank you very much for your advice!
It works great!
Original comment by Nathan.N...@gmail.com
on 6 Mar 2009 at 3:40
Original issue reported on code.google.com by
Nathan.N...@gmail.com
on 3 Mar 2009 at 10:03