@Test public void getByPathShouldReturnEmptyWhenUrlNotInUse() { assertThat(repositoryStore.getByPath(PATH_REPO)) .isEmpty(); }
@Override public Stream<MailRepository> getByPath(MailRepositoryPath path) { return urlStore.listDistinct() .filter(url -> url.getPath().equals(path)) .map(this::select); }
MemoryMailRepositoryStore implements MailRepositoryStore, Startable { @Override public Stream<MailRepository> getByPath(MailRepositoryPath path) { return urlStore.listDistinct() .filter(url -> url.getPath().equals(path)) .map(this::select); } }
MemoryMailRepositoryStore implements MailRepositoryStore, Startable { @Override public Stream<MailRepository> getByPath(MailRepositoryPath path) { return urlStore.listDistinct() .filter(url -> url.getPath().equals(path)) .map(this::select); } @Inject  MemoryMailRepositoryStore(MailRepositoryUrlStore urlStore, MailRepositoryLoader mailRepositoryLoader, MailRepositoryStoreConfiguration configuration); }
MemoryMailRepositoryStore implements MailRepositoryStore, Startable { @Override public Stream<MailRepository> getByPath(MailRepositoryPath path) { return urlStore.listDistinct() .filter(url -> url.getPath().equals(path)) .map(this::select); } @Inject  MemoryMailRepositoryStore(MailRepositoryUrlStore urlStore, MailRepositoryLoader mailRepositoryLoader, MailRepositoryStoreConfiguration configuration); @Override Optional<Protocol> defaultProtocol(); void init(); @Override Stream<MailRepositoryUrl> getUrls(); @Override Optional<MailRepository> get(MailRepositoryUrl url); @Override Stream<MailRepository> getByPath(MailRepositoryPath path); @Override MailRepository select(MailRepositoryUrl mailRepositoryUrl); }
MemoryMailRepositoryStore implements MailRepositoryStore, Startable { @Override public Stream<MailRepository> getByPath(MailRepositoryPath path) { return urlStore.listDistinct() .filter(url -> url.getPath().equals(path)) .map(this::select); } @Inject  MemoryMailRepositoryStore(MailRepositoryUrlStore urlStore, MailRepositoryLoader mailRepositoryLoader, MailRepositoryStoreConfiguration configuration); @Override Optional<Protocol> defaultProtocol(); void init(); @Override Stream<MailRepositoryUrl> getUrls(); @Override Optional<MailRepository> get(MailRepositoryUrl url); @Override Stream<MailRepository> getByPath(MailRepositoryPath path); @Override MailRepository select(MailRepositoryUrl mailRepositoryUrl);  }