use of org.eclipse.sw360.cvesearch.datasource.CveSearchData in project sw360portal by sw360.
the class CveSearchDataTranslatorTest method testWithRealData.
@Test
public void testWithRealData() throws IOException {
List<CveSearchData> cveSearchDatas = new CveSearchApiImpl(host).search("zyxel", "zywall");
List<CveSearchDataTranslator.VulnerabilityWithRelation> vms = cveSearchDatas.stream().map(cveSearchData -> cveSearchDataTranslator.apply(cveSearchData)).collect(Collectors.toList());
assert (vms != null);
}
Aggregations