@Test public void lotlTest() { TLValidationJob validationJob = getLOTLValidationJob(); TLValidationJobSummary summary = validationJob.getSummary(); assertEquals(1, summary.getNumberOfProcessedLOTLs()); assertEquals(31, summary.getNumberOfProcessedTLs()); List<TLInfo> otherTLInfos = summary.getOtherTLInfos(); assertEquals(0, otherTLInfos.size()); List<LOTLInfo> lotlInfos = summary.getLOTLInfos(); assertEquals(1, lotlInfos.size()); List<CertificateToken> potentialSigners = lotlInfos.get(0).getValidationCacheInfo().getPotentialSigners(); assertTrue(Utils.isCollectionNotEmpty(potentialSigners)); List<CertificateToken> keyStoreCertificates = lotlSource.getCertificateSource().getCertificates(); assertEquals(keyStoreCertificates.size(), potentialSigners.size()); for (CertificateToken certificate : potentialSigners) { assertTrue(keyStoreCertificates.contains(certificate)); } List<TLInfo> tlInfos = lotlInfos.get(0).getTLInfos(); assertEquals(31, tlInfos.size()); for (TLInfo tlInfo : tlInfos) { if (tlInfo.getDownloadCacheInfo().isResultExist()) { assertNull(tlInfo.getDownloadCacheInfo().getExceptionMessage()); assertNull(tlInfo.getDownloadCacheInfo().getExceptionStackTrace()); assertNull(tlInfo.getParsingCacheInfo().getExceptionMessage()); assertNull(tlInfo.getParsingCacheInfo().getExceptionStackTrace()); assertNull(tlInfo.getValidationCacheInfo().getExceptionMessage()); assertNull(tlInfo.getValidationCacheInfo().getExceptionStackTrace()); assertTrue(Utils.isCollectionNotEmpty(tlInfo.getValidationCacheInfo().getPotentialSigners())); } } }
public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); }
TLValidationJob { public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); } }
TLValidationJob { public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); }  }
TLValidationJob { public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); }  void setTrustedListSources(TLSource... trustedListSources); void setListOfTrustedListSources(LOTLSource... listOfTrustedListSources); void setExecutorService(ExecutorService executorService); void setOfflineDataLoader(DSSFileLoader offlineLoader); void setOnlineDataLoader(DSSFileLoader onlineLoader); void setCacheCleaner(final CacheCleaner cacheCleaner); void setTrustedListCertificateSource(TrustedListsCertificateSource trustedListCertificateSource); void setSynchronizationStrategy(SynchronizationStrategy synchronizationStrategy); void setDebug(boolean debug); void setLOTLAlerts(List<Alert<LOTLInfo>> lotlAlerts); void setTLAlerts(List<Alert<TLInfo>> tlAlerts); synchronized TLValidationJobSummary getSummary(); synchronized void offlineRefresh(); synchronized void onlineRefresh(); }
TLValidationJob { public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); }  void setTrustedListSources(TLSource... trustedListSources); void setListOfTrustedListSources(LOTLSource... listOfTrustedListSources); void setExecutorService(ExecutorService executorService); void setOfflineDataLoader(DSSFileLoader offlineLoader); void setOnlineDataLoader(DSSFileLoader onlineLoader); void setCacheCleaner(final CacheCleaner cacheCleaner); void setTrustedListCertificateSource(TrustedListsCertificateSource trustedListCertificateSource); void setSynchronizationStrategy(SynchronizationStrategy synchronizationStrategy); void setDebug(boolean debug); void setLOTLAlerts(List<Alert<LOTLInfo>> lotlAlerts); void setTLAlerts(List<Alert<TLInfo>> tlAlerts); synchronized TLValidationJobSummary getSummary(); synchronized void offlineRefresh(); synchronized void onlineRefresh();  }