Groups
Groups
Sign in
Groups
Groups
gmock-dev
Conversations
About
Send feedback
Help
Support "play" label with @WithGMock AST Transformation
29 views
Skip to first unread message
Johnny Jian
unread,
Oct 24, 2009, 10:45:37 AM
10/24/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gmock-dev
Inspired by the Spock framework, I have an idea of supporting a "play"
label with the @WithGMock AST Transformation.
For example:
void testPlayLabel() {
def mock = mock()
mock.fun().returns(1)
play:
assertEquals 1, mock.fun()
}
can be transformed into:
void testPlayLabel() {
def mock = mock()
mock.fun().returns(1)
play {
assertEquals 1, mock.fun()
}
}
This can give the users an option to organize the code in a "flat"
structure.
Any thoughts?
Julien
unread,
Nov 24, 2009, 2:50:18 AM
11/24/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gmock-dev
I had a look at spock. We don't have to copy it we are just having
different philosophie.
To make it explicit we would have to had a verify: step as well.
Humm.
Reply all
Reply to author
Forward
0 new messages