What We Just Learned
When developing a REST web service with Cucumber, we need to keep in mind that the service is running in a different process than Cucumber. This means that we need to remember to start the service before we can run our features.
Although our example used the Jersey JAX-RS library, the techniques used in this chapter can be applied to any other web services technology. And because we’re accessing the service’s functionality through its web interface, the service can be written in any language—Cucumber doesn’t care what language the application you’re developing is written in, as long as there’s an API that it can talk to.
Often our services will “talk” in JSON, and this may surface in our features. You can make this easier ...
Get The Cucumber for Java Book now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.