Moving to Multiples
The commits through [4bdedba] proceed to the handling of multiple URLs to be retrieved. At this point, I only handle direct retrieval with no modifiers, so the easiest approach was to create a new entry point that accepted multiple URLs and looped, invoking the existing retrieve() method for each. This required some elaboration of the spec for how multiple bodies of content should be displayed successively.
The driving test for this functionality was written in [5334caa]. This test creates a stub that uses a counter to return different content for each invocation. Different returns help to insulate the test from the accidental appearance of correctness.
Some would object to the use of StringUtils.join() both in the test and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access