artists.forEach(artist -> pw.printf(" %s - %s%n", displayNameOf(artist), artist.getSource().orElse(new Id("unknown")))); pw.printf(" COUNT OF ALL ARTISTS RETRIEVED BY %d QUERIES%n", artistCountQueryCount); pw.printf(" ALL ARTISTS RETRIEVED BY %d QUERIES%n", artistsQueryCount); assertEquals(track.getSource(), artist.getSource()); }); pw.printf("%nRECORDS OF %s (%d):%n", displayNameOf(artist), recordFinder.count()); recordFinder.stream().forEach(record -> pw.printf(" %s%n", displayNameOf(record))); recordFinder.stream().forEach(record -> assertEquals(record.getSource(), artist.getSource())); pw.printf(" RETRIEVED BY %d QUERIES%n", getLatestQueryCount()); }); pw.printf("%nPERFORMANCES OF %s (%d):%n", displayNameOf(artist), performanceFinder.count()); performanceFinder.stream().forEach(performance -> pw.printf(" %s%n", performance.toDumpString())); performanceFinder.stream().forEach(performance -> assertEquals(performance.getSource(), artist.getSource())); pw.printf(" RETRIEVED BY %d QUERIES%n", getLatestQueryCount()); });