CveSearchApiImpl implements CveSearchApi { @Override public List<CveSearchData> cvefor(String cpe) throws IOException { String query = composeQuery(CVE_SEARCH_CVEFOR, cpe.toLowerCase()); return getParsedCveSearchDatas(query); } CveSearchApiImpl(String host); @Override List<CveSearchData> search(String vendor, String product); @Override List<CveSearchData> cvefor(String cpe); @Override CveSearchData cve(String cve); @Override List<String> allVendorNames(); @Override List<String> allProductsOfVendor(String vendorName); public String CVE_SEARCH_WILDCARD; }
@Test public void exactCveforTest() throws IOException { List<CveSearchData> result; result = cveSearchApi.cvefor(CPE); assert(result != null); }