~/talk

Property Testing in Java

Talkat Devnexus 2020 · 2020-02-19..02-21· [testing, java]
links:none on file
slides:none on file

Explains how property‑based testing complements TDD and gives concrete Java tooling, showing jqwik, junit-quickcheck, and Vavr/favor integrations, generator patterns, constraints, null probabilities, shrinking and verification modes. Demonstrates properties (reverse(reverse(s)) == s, concat preserves elements, compare custom map against java.util, absolute value >= 0, FizzBuzz and Caesar shift), shows jqwik finding a failure with Integer.MIN_VALUE, describes starvation when ranges are tiny, notes JUnit 5 required for jqwik and that defaults are usually 100–1,000 checks.

AI-written summary · about

  1. 0:00Start
  2. 4:28How is it different than a unit test?
  3. 6:44Reversing a String?
  4. 11:04Building a Custom Map?
  5. 15:22What a property test will not give you
  6. 16:32Quick Check
  7. 16:49Scala Check
~/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.