~/talk

Testing with Spring 4.x

Talkat SpringOne2GX 2014 · 2014-09-08..09-11· [testing]
slides:none on file

Practical walkthrough of Spring Framework 4.0–4.1 testing: shows SocketUtils for finding free TCP/UDP ports, the new TestContext bootstrap and listener merging, programmatic TestTransaction API to end/start test transactions and flagForCommit()/flagForRollback(), declarative @Sql with execution phases and repeatable configs, Groovy-based ApplicationContext loading, MockMvc/JSON assertion upgrades, and embedded DB/script utils with multi‑line comment support — includes code snippets and XML/Java/Groovy examples.

AI-written summary · about

  1. 0:00Intro
  2. 0:29Sam Brannen
  3. 2:52Agenda
  4. 3:36Spring Cleaning in 4.x
  5. 4:13Pruning in 4.0
  6. 5:38Dependency Upgrades in 4.0
  7. 7:03Testing Themes from Spring 3.x (2/2)
  8. 10:18Ex: Web Integration Test (1/2)
  9. 16:06New in 4.0 (2/3)
  10. 20:39New in 4.1 - Context Config
  11. 21:15New in 4.1 -Transactions and SQL
  12. 21:59New in 4.1 - Bootstrap & TestExecutionListeners
  13. 26:16New in 4.1 - Spring MVC Test
  14. 27:23New in 4.1 - Odds & Ends
  15. 29:38Using SocketUtils in XML Config
  16. 32:00Tip: Define Free Port as Bean
  17. 34:02Ex: @Active Profiles - Programmatic
  18. 34:42Composable Stereotypes - Quick Review
  19. 36:17Duplicate Test Configuration == Bad
  20. 36:43Custom Test Annotation == Good
  21. 37:13Composable Annotations with Overrides
  22. 38:57Optional Annotation Attribute Override
  23. 40:21Required Annotation Attribute Override
  24. 41:13Groovy Beans in Spring
  25. 43:32Groovy Scripts for Context Config in Tests
  26. 45:29Ex: Groovy Script Config
  27. 46:17Ex: Default Groovy Script Detection
  28. 47:04Ex: Groovy & XML Config Together
  29. 47:45Test Property Sources
  30. 49:16@TestProperty Source - locations
  31. 51:25@TestProperty Source - properties
  32. 52:14Ex: @Test Property Source - properties
  33. 53:21Default Properties File Detection
  34. 54:21@TestProperty Source - Precedence
  35. 55:31Ex: @Test Property Source - locations & properties
  36. 56:12Programmatic Transaction Management in Tests
  37. 57:18Transactions in Spring
~/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.