@Test public void getLocationsByPreference_handles_empty() { TrustAnchor ta = new TrustAnchor(); ta.setLocations(Lists.newArrayList()); assertThat(ta.getLocationsByPreference()).isEmpty(); }
public List<URI> getLocationsByPreference() { return locations.stream() .map(URI::create) .sorted(Comparator.comparing(URI::getScheme)) .collect(Collectors.toList()); }
TrustAnchor extends Base<TrustAnchor> { public List<URI> getLocationsByPreference() { return locations.stream() .map(URI::create) .sorted(Comparator.comparing(URI::getScheme)) .collect(Collectors.toList()); } }
TrustAnchor extends Base<TrustAnchor> { public List<URI> getLocationsByPreference() { return locations.stream() .map(URI::create) .sorted(Comparator.comparing(URI::getScheme)) .collect(Collectors.toList()); } TrustAnchor();  TrustAnchor(boolean preconfigured); }
TrustAnchor extends Base<TrustAnchor> { public List<URI> getLocationsByPreference() { return locations.stream() .map(URI::create) .sorted(Comparator.comparing(URI::getScheme)) .collect(Collectors.toList()); } TrustAnchor();  TrustAnchor(boolean preconfigured); void setCertificate(X509ResourceCertificate certificate); X509ResourceCertificate getCertificate(); void markInitialCertificateTreeValidationRunCompleted(); List<URI> getLocationsByPreference(); }
TrustAnchor extends Base<TrustAnchor> { public List<URI> getLocationsByPreference() { return locations.stream() .map(URI::create) .sorted(Comparator.comparing(URI::getScheme)) .collect(Collectors.toList()); } TrustAnchor();  TrustAnchor(boolean preconfigured); void setCertificate(X509ResourceCertificate certificate); X509ResourceCertificate getCertificate(); void markInitialCertificateTreeValidationRunCompleted(); List<URI> getLocationsByPreference(); static final String TYPE; }