~/talk

Showdown of the Asserts

Talkat JavaDay Kharkiv 2015 · 2015-10-15..10-16· [testing]
slides:none on file

Compares plain JUnit and TestNG asserts with richer libraries and a Groovy alternative, finds AssertJ / Hamcrest for rich collection checks much clearer for nested maps and complex predicates, notes Truth is simpler but less chainable, flags Fest as effectively dead, and recommends Spock for data‑driven specs and table tests when Groovy is acceptable. Recommends sticking to one assertion style to avoid mixed argument orders, and using Tempus Fugit for concurrency and timing constraints in integration tests rather than ad‑hoc sleeps.

AI-written summary · about

  1. 0:00Introduction
  2. 4:00Running tests
  3. 8:25Test frameworks
  4. 11:50The original code
  5. 16:20The differences
  6. 18:00TesterG
  7. 18:40Impress
  8. 19:50Complex tests
  9. 22:30Shortchain
  10. 23:10Truth
  11. 25:45Spot
  12. 27:00Conclusion
  13. 29:10No maybe in tests
~/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.