~/talk

Testing functions

Talkat GDG DevFest Hamburg 2017 · 2017-11-25..11-26· [kotlin]
links:none on file
links:none on file
slides:none on file

Shows how pulling logic into small Kotlin functions (examples: messagesOnlyIfLoggedIn, combineMessages, fetchMessages) replaces brittle Android-heavy classes, removes thread switching, and lets unit tests run without PowerMock. Uses Mockito only for higher-level providers but proves core logic tests need no mocks. Team reports ~2,000 unit tests running in ~20–30s after refactor. Demo merges server/local lists, filters deletions, sorts results, and the extracted functions behave deterministically and are easy to assert.

AI-written summary · about

  1. 0:00Intro
  2. 1:52Presentation plan
  3. 2:28Testable code
  4. 4:12Untestable code
  5. 5:55Solution
  6. 6:26Business logic
  7. 13:14Testing
  8. 24:24Fetch messages
  9. 25:30Selling points
  10. 28:33FAQ
  11. 30:14Lazy way
  12. 31:09Questions
~/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.