...

/

Extracting Application Logic

Extracting Application Logic

Learn how to extract application logic for writing better tests.

The findMatchingProfiles() method is pretty short but still manages to present a good testing challenge. The method intermingles application logic and threading logic. Our first goal is to separate the two.

Start by extracting the logic that gathers MatchSet instances into its own ... ...

Access this course and 1400+ top-rated courses and projects.