~/talk

Testing the untestable PART II – patterns, use cases and practices

Talkat JDD 2024 · 2024-10-22..10-23· [testing]
slides:none on file

Shows concrete techniques: use jQuick property-based tests (default 1,000 tries, author recommends 10,000 for text) and it found a missed edge case (library reported 8 edge cases, author had 7), inject caches by making constructors protected and use fixture subclasses to supply a test cache, separate retry policy into a decorator and test it with a failing fake using FailSafe (retry policy maxRetries=3), make executors explicit and use a deterministic scheduler or ThreadsCollider/JCStress for concurrency, test logs with an SLF4J test appender, and use EqualsVerifier for BigDecimal equality pitfalls; testcontainers must match production versions.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:29Testing value objects with PBT
  3. 15:32Testing internal caches
  4. 18:47Testing private immutable fields
  5. 21:17Fault tolerance and resilience
  6. 27:27Multi-threading and concurrency
  7. 33:53Testing logging as a feature
  8. 39:42Testing equals and hashCode
  9. 41:55Testing persistence options
  10. 44:04Summary and feedback
~/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.