~/talk

Testing Java Code Effectively

Talkat Voxxed Days Ticino 2017 · on Saturday, 2017-05-06· [testing, java]
slides:none on file

A desktop Griffon client that queries the GitHub repos endpoint is implemented and tested end‑to‑end; tests switch from hitting the real API to an embedded fake server using WireMock, letting functional UI tests run offline and deterministically. Unit tests use Mockito (mocks, strict mocks, spies, supports final classes in 2.8.9), parameterization via junitparams or Spock data tables, and fluent assertions with Hamcrest, AssertJ and Truth. REST APIs are exercised with Rest Assured, Arquillian handles in‑container Java EE tests, and a small waiting DSL uses a 2s example timeout (default 10s) to avoid flaky concurrency waits.

AI-written summary · about

  1. 0:00Introduction
  2. 3:58Handcrest
  3. 5:47Sergej
  4. 16:03Parameterization
  5. 21:27Yukito
  6. 23:25Spark
  7. 30:52Waiting Conditions
  8. 35:50Wire Mock
  9. 39:35REST API
  10. 41:30Rest assured
~/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.