As the number of REST based services in our application landscape grows, we better make sure they are tested really well! Component-Testing REST API’s (that is, testing the REST API against a fully deployed artifact) can be a bit of a pain, however, using existing solutions like SoapUI, PostMan, or Cucumber.
Enter REST-Assured, a library that makes testing REST APIs fun and easy!
On our projects, we are now using REST-Assured to do REST testing. REST-assured uses a concise, 100% Java DSL (with some Groovy underneath), to test against REST APIs. Using this library really cleaned up our existing tests and sped up the process of writing new REST tests!
In this session, I will outline different types of REST API testing, and give a REST-Assured demo to test the REST interface of an existing REST service (written in Spring Boot), including request ans response specification re-use and handling authentication. I will also show how you can integrate REST-Assured in Spring and SpringBoot integration tests.
Bio Michel Schudel:
Michel Schudel has been passionately developing in Java and a host of other languages for over 15 years. Since then he has seen the good, the bad and the ugly in Java land!
He loves agile development and coding with micro and meso frameworks like SpringBoot and SparkJava, and finding good ways to test all this stuff. Futhermore, he likes to coach junior developers their first steps in core Java.
Michel currently works for Craftsmen at Dutch Railways.