@Test public void testSKDefault() { TLParsingTask task = new TLParsingTask(SK_TL, new TLSource()); TLParsingResult result = task.get(); assertNotNull(result); assertEquals(5, result.getVersion()); assertEquals(59, result.getSequenceNumber()); assertNotNull(result.getIssueDate()); assertNotNull(result.getNextUpdateDate()); assertEquals("SK", result.getTerritory()); assertNotNull(result.getDistributionPoints()); List<TrustServiceProvider> trustServiceProviders = result.getTrustServiceProviders(); assertNotNull(trustServiceProviders); assertEquals(6, trustServiceProviders.size()); checkTSPs(trustServiceProviders); TrustServiceProvider nsa = trustServiceProviders.get(0); assertEquals(27, nsa.getServices().size()); TrustServiceProvider disig = trustServiceProviders.get(1); assertEquals(56, disig.getServices().size()); TrustServiceProvider mil = trustServiceProviders.get(2); assertEquals(8, mil.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();  }