@Test public void testFindByDomain() throws TechnicalException { IdentityProvider identityProvider = new IdentityProvider(); identityProvider.setName("testName"); identityProvider.setReferenceType(ReferenceType.DOMAIN); identityProvider.setReferenceId("testDomain"); identityProviderRepository.create(identityProvider).blockingGet(); TestObserver<Set<IdentityProvider>> testObserver = identityProviderRepository.findByDomain("testDomain").test(); testObserver.awaitTerminalEvent(); testObserver.assertComplete(); testObserver.assertNoErrors(); testObserver.assertValue(idps -> idps.size() == 1); }
@Override public Single<Set<IdentityProvider>> findByDomain(String domain) { return findAll(ReferenceType.DOMAIN, domain); }
MongoIdentityProviderRepository extends AbstractManagementMongoRepository implements IdentityProviderRepository { @Override public Single<Set<IdentityProvider>> findByDomain(String domain) { return findAll(ReferenceType.DOMAIN, domain); } }
MongoIdentityProviderRepository extends AbstractManagementMongoRepository implements IdentityProviderRepository { @Override public Single<Set<IdentityProvider>> findByDomain(String domain) { return findAll(ReferenceType.DOMAIN, domain); }  }
MongoIdentityProviderRepository extends AbstractManagementMongoRepository implements IdentityProviderRepository { @Override public Single<Set<IdentityProvider>> findByDomain(String domain) { return findAll(ReferenceType.DOMAIN, domain); }  @PostConstruct void init(); @Override Single<Set<IdentityProvider>> findAll(ReferenceType referenceType, String referenceId); @Override Single<Set<IdentityProvider>> findAll(); @Override Single<Set<IdentityProvider>> findByDomain(String domain); @Override Maybe<IdentityProvider> findById(String identityProviderId); @Override Maybe<IdentityProvider> findById(ReferenceType referenceType, String referenceId, String identityProviderId); @Override Single<IdentityProvider> create(IdentityProvider item); @Override Single<IdentityProvider> update(IdentityProvider item); @Override Completable delete(String id); }
MongoIdentityProviderRepository extends AbstractManagementMongoRepository implements IdentityProviderRepository { @Override public Single<Set<IdentityProvider>> findByDomain(String domain) { return findAll(ReferenceType.DOMAIN, domain); }  @PostConstruct void init(); @Override Single<Set<IdentityProvider>> findAll(ReferenceType referenceType, String referenceId); @Override Single<Set<IdentityProvider>> findAll(); @Override Single<Set<IdentityProvider>> findByDomain(String domain); @Override Maybe<IdentityProvider> findById(String identityProviderId); @Override Maybe<IdentityProvider> findById(ReferenceType referenceType, String referenceId, String identityProviderId); @Override Single<IdentityProvider> create(IdentityProvider item); @Override Single<IdentityProvider> update(IdentityProvider item); @Override Completable delete(String id);  }