@Test public void countCertificatesDE() throws Exception { TLParsingTask task = new TLParsingTask(DE_TL, new TLSource()); TLParsingResult result = task.get(); assertNotNull(result); assertEquals(4, result.getVersion()); assertEquals(22, result.getSequenceNumber()); assertNotNull(result.getIssueDate()); assertNotNull(result.getNextUpdateDate()); assertEquals("DE", result.getTerritory()); assertTrue(Utils.isCollectionNotEmpty(result.getDistributionPoints())); List<TrustServiceProvider> trustServiceProviders = result.getTrustServiceProviders(); assertNotNull(trustServiceProviders); Set<CertificateToken> certs = new HashSet<>(); for (TrustServiceProvider tslServiceProvider : trustServiceProviders) { List<TrustService> services = tslServiceProvider.getServices(); for (TrustService tslService : services) { certs.addAll(tslService.getCertificates()); } } assertEquals(413, certs.size()); }
@Override public TLParsingResult get() { TLParsingResult result = new TLParsingResult(); TrustStatusListType jaxbObject = getJAXBObject(); parseSchemeInformation(result, jaxbObject.getSchemeInformation()); parseTrustServiceProviderList(result, jaxbObject.getTrustServiceProviderList()); return result; }
TLParsingTask extends AbstractParsingTask implements Supplier<TLParsingResult> { @Override public TLParsingResult get() { TLParsingResult result = new TLParsingResult(); TrustStatusListType jaxbObject = getJAXBObject(); parseSchemeInformation(result, jaxbObject.getSchemeInformation()); parseTrustServiceProviderList(result, jaxbObject.getTrustServiceProviderList()); return result; } }
TLParsingTask extends AbstractParsingTask implements Supplier<TLParsingResult> { @Override public TLParsingResult get() { TLParsingResult result = new TLParsingResult(); TrustStatusListType jaxbObject = getJAXBObject(); parseSchemeInformation(result, jaxbObject.getSchemeInformation()); parseTrustServiceProviderList(result, jaxbObject.getTrustServiceProviderList()); return result; } TLParsingTask(DSSDocument document, TLSource tlSource); }
TLParsingTask extends AbstractParsingTask implements Supplier<TLParsingResult> { @Override public TLParsingResult get() { TLParsingResult result = new TLParsingResult(); TrustStatusListType jaxbObject = getJAXBObject(); parseSchemeInformation(result, jaxbObject.getSchemeInformation()); parseTrustServiceProviderList(result, jaxbObject.getTrustServiceProviderList()); return result; } TLParsingTask(DSSDocument document, TLSource tlSource); @Override TLParsingResult get(); }
TLParsingTask extends AbstractParsingTask implements Supplier<TLParsingResult> { @Override public TLParsingResult get() { TLParsingResult result = new TLParsingResult(); TrustStatusListType jaxbObject = getJAXBObject(); parseSchemeInformation(result, jaxbObject.getSchemeInformation()); parseTrustServiceProviderList(result, jaxbObject.getTrustServiceProviderList()); return result; } TLParsingTask(DSSDocument document, TLSource tlSource); @Override TLParsingResult get();  }