Using AwaitlitySupport as a mixin in Groovy with Spock

513 views
Skip to first unread message

Marcin Zajączkowski

unread,
Apr 8, 2013, 7:08:11 PM4/8/13
to await...@googlegroups.com
Hi,

I'm making a presentation about asynchronous calls testing with
Awaitlity and covering Groovy support I noticed that existing example
just extends AwaitlitySupport. It makes it hard to use with Spock
Framework [1] which already requires to extend its base class. I was
wondered why not to mixin AwaitlitySupport into a test class (just like
an AwaitlitySupport trait in Scala). My simple PoC shows that it seems
to work fine - see my pull request [2].

It is possible that I missed something important, but if not I think you
could add an example how to used Awaitility with Spock on Wiki.

[1] - http://spockframework.org/
[2] - https://github.com/jayway/awaitility/pull/2

Marcin

--
http://blog.solidsoft.info/ - Working code is not enough

Johan Haleby

unread,
Apr 9, 2013, 2:19:44 AM4/9/13
to await...@googlegroups.com
Thanks for your comments and patch. The reason why I didn't use @Mixin was that for some reason I couldn't build it in Maven or Intellij (cannot remember which). But it seems to work nowadays so I'll update the docs. 

It would be interesting to see your presentation so if it'll be available on video or slides let us know :)

Regards,
/Johan


--
You received this message because you are subscribed to the Google Groups "Awaitility" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awaitility+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Marcin Zajączkowski

unread,
Apr 26, 2013, 5:52:59 PM4/26/13
to await...@googlegroups.com
On 2013-04-09 08:19, Johan Haleby wrote:
> Thanks for your comments and patch. The reason why I didn't use @Mixin was
> that for some reason I couldn't build it in Maven or Intellij (cannot
> remember which). But it seems to work nowadays so I'll update the docs.
>
> It would be interesting to see your presentation so if it'll be available
> on video or slides let us know :)

I was talking about Awaitility on the event "6 tastes of testing -
flashtalks" organized by Warszawa JUG. I didn't have a "standard"
slides, but a mind map with transitions between nodes (+ embeded code
snippets). The map is available on my blog:
https://solidsoft.wordpress.com/2013/04/26/sleepless-asynchronous-calls-testing-and-5-other-flashtalks-on-warszawa-jug/

Constructive remarks are welcome :).

There is also a video available, but my speech (like the whole event)
was conducted in Polish.

Marcin

Johan Haleby

unread,
Apr 29, 2013, 2:31:42 AM4/29/13
to await...@googlegroups.com
Hi, 

Really cool that you're promoting Awaitility! Unfortunately I cannot seem to load http://solidsoft.files.wordpress.com/2013/04/sleepless-tests-with-awaitility-6-tastes.png :/

Regards,
/Johan


Marcin Zajączkowski

unread,
Apr 29, 2013, 4:24:35 AM4/29/13
to await...@googlegroups.com
On 2013-04-29 08:31, Johan Haleby wrote:
> Hi,
>
> Really cool that you're promoting Awaitility! Unfortunately I cannot seem
> to load
> http://solidsoft.files.wordpress.com/2013/04/sleepless-tests-with-awaitility-6-tastes.png:/

Hmm, how did you get that link? There are two extra characters in your
link, but possible it is just an emoticon you added in email. The link:
http://solidsoft.files.wordpress.com/2013/04/sleepless-tests-with-awaitility-6-tastes.png

which is used in my blog entry works just fine for me. I checked with
two different browsers. Could you confirm that it doesn't work for you?
What error do you receive?

Marcin


> On Fri, Apr 26, 2013 at 11:52 PM, Marcin Zaj�czkowski <msz...@wp.pl> wrote:
>
>> On 2013-04-09 08:19, Johan Haleby wrote:
>>> Thanks for your comments and patch. The reason why I didn't use @Mixin
>> was
>>> that for some reason I couldn't build it in Maven or Intellij (cannot
>>> remember which). But it seems to work nowadays so I'll update the docs.
>>>
>>> It would be interesting to see your presentation so if it'll be available
>>> on video or slides let us know :)
>>
>> I was talking about Awaitility on the event "6 tastes of testing -
>> flashtalks" organized by Warszawa JUG. I didn't have a "standard"
>> slides, but a mind map with transitions between nodes (+ embeded code
>> snippets). The map is available on my blog:
>>
>> https://solidsoft.wordpress.com/2013/04/26/sleepless-asynchronous-calls-testing-and-5-other-flashtalks-on-warszawa-jug/
>>
>> Constructive remarks are welcome :).
>>
>> There is also a video available, but my speech (like the whole event)
>> was conducted in Polish.
>>
>> Marcin
>>
>>
>>> On Tue, Apr 9, 2013 at 1:08 AM, Marcin Zaj�czkowski <msz...@wp.pl>
Reply all
Reply to author
Forward
0 new messages