~/talk

Testing Web Apps with Spring Framework

Talkat JavaDay Kiev 2014 · 2014-11-06..11-07· [spring, testing]
links:none on file
slides:none on file

Shows how to test Spring MVC controllers with concrete code: pure unit tests using mocks that run in milliseconds, controller-scoped integration tests with MockMvc scaffolding that serialize real domain objects to JSON and assert status, headers and JSON properties, and full Spring-context tests that run with a real (HSQL) DB loaded by @Sql scripts and take about a second to start (single setup) then seconds per suite. Uses Spring MVC Test framework (Spring 3.2+/4.x), request builders, JSON path assertions and exception verification.

AI-written summary · about

  1. 0:00Introduction
  2. 2:16Unit tests for controllers
  3. 8:40Spring MVC Test Framework
  4. 11:56Isolated integration tests
  5. 21:57Integration tests with context
  6. 30:15Extensions and resources
  7. 32:52Q&A
~/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.