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