How do you use gmock in a grails project?

2 views
Skip to first unread message

Johnny

unread,
Mar 10, 2009, 12:51:12 AM3/10/09
to gmoc...@googlegroups.com
Copy the jar file to the lib directory? I just wonder whether we need to
create a grails plugin for gmock.

Julien Gagnet

unread,
Mar 10, 2009, 3:42:52 AM3/10/09
to gmoc...@googlegroups.com
That's correct just copy the jar file into the lib directory.

We could still make a plugin out of it. Maybe we could had some grails
specific dsl. This would increase our visibility and number of user.
This make it easier for user to install and upgrade.

I thought the groowe project would be using gmock...

2009/3/10 Johnny <johnny...@gmail.com>:

Johnny

unread,
Mar 10, 2009, 6:39:10 AM3/10/09
to gmoc...@googlegroups.com
So, what grails specific DSL can we have? Any idea? Will it overlay some
aspects of the testing plugin in grails 1.1?

PS: I have not worked on groowe for a long time, and even not advert to
its progress.

在 2009-03-10二的 07:42 +0000,Julien Gagnet写道:

Johnny

unread,
Mar 10, 2009, 9:16:27 AM3/10/09
to gmoc...@googlegroups.com
I have one more question: what kind of objects you usually use gmock to
mock in a grails project?

在 2009-03-10二的 07:42 +0000,Julien Gagnet写道:

Julien Gagnet

unread,
Mar 10, 2009, 2:47:16 PM3/10/09
to gmoc...@googlegroups.com
I am using it to mock anything really. In a controller to mock the
services it depends on, general mocking in services, params request
response in controller, out link etc in taglib.

The best thing in the Testing Plugin is the mocking of domain object
where you can use finder etc. So there is a room for both framework in
parallel. Maybe we could talk to the grails/testing plugins people and
see if we can integrate gmock into it (and replace the horrible
MockFor and StubFor). We could think of creating a controller that
would 'extends' both framework.



2009/3/10 Johnny <johnny...@gmail.com>:

Johnny

unread,
Mar 10, 2009, 9:47:18 PM3/10/09
to gmoc...@googlegroups.com
I agree with you, especially the part of mocking domain object in the
Testing Plugin, and I was having the same thought as yours. So, we can
talk to those people after we migrate to Groovy 1.6 which is the most
important thing we have to do to make gmock working on Grails 1.1.

在 2009-03-10二的 18:47 +0000,Julien Gagnet写道:
Reply all
Reply to author
Forward
0 new messages