@Test public void smallerGroupsArentLarger() { assertFalse(analyser.isLargerGroup("John Coltrane", "The Beatles")); }
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);  }