~/talk

No-Frills REST API Testing with REST-Assured

TalkinDutchat Devoxx Belgium 2017 · 2017-11-06..11-10· [testing, api-design]
links:none on file
slides:none on file

A concise introduction to the REST-Assured Java DSL for component testing REST services, showing real code against a Spring Boot REST service. Covers reusable request/response specs, status-code checks (e.g. 200) with Hamcrest matchers, JSONPath extraction of fields, POSTing JSON that persists to the database, and running integration tests by starting Spring Boot on a random port or by mocking remote services.

AI-written summary · about

  1. 0:00REST API testing intro
  2. 2:07REST-Assured simplifies testing
  3. 4:57Demo service setup
  4. 7:31REST-Assured test structure
  5. 10:56Validate response content
  6. 13:26Query parameters handling
  7. 15:16Status codes & request builders
  8. 17:55Post data & validate response
  9. 18:58JSON object shortcuts
  10. 21:29REST-Assured in Spring Boot
  11. 24:07Tests in Spring context
  12. 25:54Speaker service integration
  13. 27:45Demo results & closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.