@Test public void testNotFoundById() throws TechnicalException { factorRepository.findById("test").test().assertEmpty(); }
@Override public Maybe<Factor> findById(String factorId) { return Observable.fromPublisher(factorsCollection.find(eq(FIELD_ID, factorId)).first()).firstElement().map(this::convert); }
MongoFactorRepository extends AbstractManagementMongoRepository implements FactorRepository { @Override public Maybe<Factor> findById(String factorId) { return Observable.fromPublisher(factorsCollection.find(eq(FIELD_ID, factorId)).first()).firstElement().map(this::convert); } }
MongoFactorRepository extends AbstractManagementMongoRepository implements FactorRepository { @Override public Maybe<Factor> findById(String factorId) { return Observable.fromPublisher(factorsCollection.find(eq(FIELD_ID, factorId)).first()).firstElement().map(this::convert); }  }
MongoFactorRepository extends AbstractManagementMongoRepository implements FactorRepository { @Override public Maybe<Factor> findById(String factorId) { return Observable.fromPublisher(factorsCollection.find(eq(FIELD_ID, factorId)).first()).firstElement().map(this::convert); }  @PostConstruct void init(); @Override Single<Set<Factor>> findAll(); @Override Single<Set<Factor>> findByDomain(String domain); @Override Maybe<Factor> findByDomainAndFactorType(String domain, String factorType); @Override Maybe<Factor> findById(String factorId); @Override Single<Factor> create(Factor item); @Override Single<Factor> update(Factor item); @Override Completable delete(String id); }
MongoFactorRepository extends AbstractManagementMongoRepository implements FactorRepository { @Override public Maybe<Factor> findById(String factorId) { return Observable.fromPublisher(factorsCollection.find(eq(FIELD_ID, factorId)).first()).firstElement().map(this::convert); }  @PostConstruct void init(); @Override Single<Set<Factor>> findAll(); @Override Single<Set<Factor>> findByDomain(String domain); @Override Maybe<Factor> findByDomainAndFactorType(String domain, String factorType); @Override Maybe<Factor> findById(String factorId); @Override Single<Factor> create(Factor item); @Override Single<Factor> update(Factor item); @Override Completable delete(String id);  }