~/talk

Modernising J-Unit with Test Data Generators

Talkat JCON EUROPE 2025 · 2025-05-12..05-15· [testing, java]
links:none on file
slides:none on file

Shows how to replace brittle fixtures with three concrete tools and concrete numbers: DataFaker creates localeed realistic data with 250+ providers and powered a demo that generated 100,000 accounts; Instancio fills deep object graphs and respects JSR‑380 validations; jqwik runs ~1,000 examples, shrinks failures to the minimal counterexample, and supports seeds to reproduce flaky failures. Covers customizing generators for ranges, sizes and conditional rules and warns that huge volumes (eg 10,000 valid emails) can be slow in CI.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:23Why test data matters
  3. 1:08Three pillars of test data
  4. 2:57Example based testing
  5. 4:46Limitations of static data
  6. 6:35Benefits of randomness
  7. 6:57Introducing Data Faker
  8. 9:26Instantio for large objects
  9. 11:57From example to property testing
  10. 13:19What is a property
  11. 14:41Introducing jQuick
  12. 15:46Key features of jQuick
  13. 17:11Customizing data generation
  14. 18:18Shrinking in property testing
  15. 19:45Benefits of property testing
  16. 20:29Patterns for properties
  17. 22:14When to use each approach
  18. 22:58Caveats and performance
  19. 23:39Closing and Q&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.