@Test public void should_filter_out_one_certificate_by_asn_and_ski() { final List<ValidatedRpkiObjects.RouterCertificate> certificates = Arrays.asList(CERTIFICATE_1, CERTIFICATE_3); final List<BgpSecFilter> filters = Collections.singletonList(new BgpSecFilter(20L, ASN_1, SKI_3, null)); final Stream<ValidatedRpkiObjects.RouterCertificate> s = bgpSecFilterService.filterCertificates(certificates.stream(), filters); assertEquals(Collections.singletonList(CERTIFICATE_1), s.collect(Collectors.toList())); }
public Stream<ValidatedRpkiObjects.RouterCertificate> filterCertificates(final Stream<ValidatedRpkiObjects.RouterCertificate> routerCertificates) { return filterCertificates(routerCertificates, all().collect(Collectors.toList())); }
BgpSecFilterService { public Stream<ValidatedRpkiObjects.RouterCertificate> filterCertificates(final Stream<ValidatedRpkiObjects.RouterCertificate> routerCertificates) { return filterCertificates(routerCertificates, all().collect(Collectors.toList())); } }
BgpSecFilterService { public Stream<ValidatedRpkiObjects.RouterCertificate> filterCertificates(final Stream<ValidatedRpkiObjects.RouterCertificate> routerCertificates) { return filterCertificates(routerCertificates, all().collect(Collectors.toList())); } @Autowired  BgpSecFilterService(SlurmStore slurmStore); }
BgpSecFilterService { public Stream<ValidatedRpkiObjects.RouterCertificate> filterCertificates(final Stream<ValidatedRpkiObjects.RouterCertificate> routerCertificates) { return filterCertificates(routerCertificates, all().collect(Collectors.toList())); } @Autowired  BgpSecFilterService(SlurmStore slurmStore); long execute(@Valid AddBgpSecFilter command); void remove(long id); Stream<BgpSecFilter> all(); void clear(); Stream<ValidatedRpkiObjects.RouterCertificate> filterCertificates(final Stream<ValidatedRpkiObjects.RouterCertificate> routerCertificates); }
BgpSecFilterService { public Stream<ValidatedRpkiObjects.RouterCertificate> filterCertificates(final Stream<ValidatedRpkiObjects.RouterCertificate> routerCertificates) { return filterCertificates(routerCertificates, all().collect(Collectors.toList())); } @Autowired  BgpSecFilterService(SlurmStore slurmStore); long execute(@Valid AddBgpSecFilter command); void remove(long id); Stream<BgpSecFilter> all(); void clear(); Stream<ValidatedRpkiObjects.RouterCertificate> filterCertificates(final Stream<ValidatedRpkiObjects.RouterCertificate> routerCertificates);  }