@Test public void largerGroupsAreLarger() { assertTrue(analyser.isLargerGroup("The Beatles", "John Coltrane")); }
public boolean isLargerGroup(String artistName, String otherArtistName) { return getNumberOfMembers(artistName) > getNumberOfMembers(otherArtistName); }
BlockingArtistAnalyzer { public boolean isLargerGroup(String artistName, String otherArtistName) { return getNumberOfMembers(artistName) > getNumberOfMembers(otherArtistName); } }
BlockingArtistAnalyzer { public boolean isLargerGroup(String artistName, String otherArtistName) { return getNumberOfMembers(artistName) > getNumberOfMembers(otherArtistName); } BlockingArtistAnalyzer(Function<String, Artist> artistLookupService); }
BlockingArtistAnalyzer { public boolean isLargerGroup(String artistName, String otherArtistName) { return getNumberOfMembers(artistName) > getNumberOfMembers(otherArtistName); } BlockingArtistAnalyzer(Function<String, Artist> artistLookupService); boolean isLargerGroup(String artistName, String otherArtistName); }
BlockingArtistAnalyzer { public boolean isLargerGroup(String artistName, String otherArtistName) { return getNumberOfMembers(artistName) > getNumberOfMembers(otherArtistName); } BlockingArtistAnalyzer(Function<String, Artist> artistLookupService); boolean isLargerGroup(String artistName, String otherArtistName);  }