@Test public void testIEDefault() { TLParsingTask task = new TLParsingTask(IE_TL, new TLSource()); TLParsingResult result = task.get(); assertNotNull(result); assertEquals(5, result.getVersion()); assertEquals(18, result.getSequenceNumber()); assertNotNull(result.getIssueDate()); assertNotNull(result.getNextUpdateDate()); assertEquals("IE", result.getTerritory()); assertTrue(Utils.isCollectionEmpty(result.getDistributionPoints())); List<TrustServiceProvider> trustServiceProviders = result.getTrustServiceProviders(); assertNotNull(trustServiceProviders); assertEquals(3, trustServiceProviders.size()); checkTSPs(trustServiceProviders); TrustServiceProvider postTrust = trustServiceProviders.get(0); assertEquals(1, postTrust.getServices().size()); TrustServiceProvider adobe = trustServiceProviders.get(1); assertEquals(1, adobe.getServices().size()); TrustServiceProvider trustPro = trustServiceProviders.get(2); assertEquals(2, trustPro.getServices().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();  }