Re: [Cucumber] spring mvc mock

89 views
Skip to first unread message

Paolo Ambrosio

unread,
May 8, 2013, 2:45:15 AM5/8/13
to cu...@googlegroups.com
On Wed, May 8, 2013 at 5:57 AM, Katat Choi <kata...@gmail.com> wrote:

> I am currently using 1.1.3 cucumber to try to mock spring mvc and do the
> testings on the mvc level. But cucumber doesn't seem to be able to autowire
> the WebApplicationContext.

Cucumber loads the cucumber.xml application context, as you can see in
the spring-txn example. From there you can import another application
context, like the one in the web application.

I'm not sure what you mean by mocking spring mvc. Do you mean calling
the controllers directly or faking an HTTP call like you would do to
test the controllers?

> I also tried to the cucumber spring example with 1.1.4-snapshot, the pom
> throws me error that the 1.1.4-snapshot is not available from the
> repository.

You need to install cucumber locally first ("mvn install" from the
root). It is not a released version, so it's not in the online
repositories.


Paolo

Matt Wynne

unread,
May 8, 2013, 4:49:22 AM5/8/13
to cu...@googlegroups.com
Fixing rule 1. See footer for rules.

--
-- Rules --

1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Reply all
Reply to author
Forward
0 new messages