@Test public void printCollectionOfReleasesTest() { final SW360Release release = SW360TestUtils.mkSW360Release("test"); final Set<SW360Release> releases = Collections.singleton(release); final String[][] printedReleases = ReporterUtils.printCollectionOfReleases(releases); assertThat(printedReleases.length).isEqualTo(releases.size()); assertThat(Arrays.asList(printedReleases[0]).contains(release.getDownloadurl())).isTrue(); assertThat(Arrays.asList(printedReleases[0]).contains(release.getName())).isTrue(); assertThat(Arrays.asList(printedReleases[0]).contains(release.getCopyrights())).isTrue(); final String delimiter = ";"; final String releasesHeader = ReporterUtils.releaseCsvPrintHeader(delimiter); assertThat(printedReleases[0].length) .isEqualTo(releasesHeader.split(delimiter).length); }
static String[][] printCollectionOfReleases(Collection<SW360Release> releases) { return releases.stream() .map(ReporterUtils::releaseCsvPrintRow) .toArray(String[][]::new); }
ReporterUtils { static String[][] printCollectionOfReleases(Collection<SW360Release> releases) { return releases.stream() .map(ReporterUtils::releaseCsvPrintRow) .toArray(String[][]::new); } }
ReporterUtils { static String[][] printCollectionOfReleases(Collection<SW360Release> releases) { return releases.stream() .map(ReporterUtils::releaseCsvPrintRow) .toArray(String[][]::new); } private  ReporterUtils(); }
ReporterUtils { static String[][] printCollectionOfReleases(Collection<SW360Release> releases) { return releases.stream() .map(ReporterUtils::releaseCsvPrintRow) .toArray(String[][]::new); } private  ReporterUtils();  }
ReporterUtils { static String[][] printCollectionOfReleases(Collection<SW360Release> releases) { return releases.stream() .map(ReporterUtils::releaseCsvPrintRow) .toArray(String[][]::new); } private  ReporterUtils();   }