@Test public void testDelete() { Entrypoint entrypoint = new Entrypoint(); entrypoint.setName("testName"); Entrypoint entrypointCreated = entrypointRepository.create(entrypoint).blockingGet(); TestObserver<Entrypoint> testObserver = entrypointRepository.findById(entrypointCreated.getId()).test(); testObserver.awaitTerminalEvent(); testObserver.assertComplete(); testObserver.assertNoErrors(); testObserver.assertValue(t -> t.getName().equals(entrypoint.getName())); TestObserver testObserver1 = entrypointRepository.delete(entrypointCreated.getId()).test(); testObserver1.awaitTerminalEvent(); entrypointRepository.findById(entrypointCreated.getId()).test().assertEmpty(); }
@Override public Completable delete(String id) { return Completable.fromPublisher(collection.deleteOne(eq(FIELD_ID, id))); }
MongoEntrypointRepository extends AbstractManagementMongoRepository implements EntrypointRepository { @Override public Completable delete(String id) { return Completable.fromPublisher(collection.deleteOne(eq(FIELD_ID, id))); } }
MongoEntrypointRepository extends AbstractManagementMongoRepository implements EntrypointRepository { @Override public Completable delete(String id) { return Completable.fromPublisher(collection.deleteOne(eq(FIELD_ID, id))); }  }
MongoEntrypointRepository extends AbstractManagementMongoRepository implements EntrypointRepository { @Override public Completable delete(String id) { return Completable.fromPublisher(collection.deleteOne(eq(FIELD_ID, id))); }  @PostConstruct void init(); @Override Maybe<Entrypoint> findById(String id, String organizationId); @Override Maybe<Entrypoint> findById(String id); @Override Flowable<Entrypoint> findAll(String organizationId); @Override Single<Entrypoint> create(Entrypoint item); @Override Single<Entrypoint> update(Entrypoint item); @Override Completable delete(String id); }
MongoEntrypointRepository extends AbstractManagementMongoRepository implements EntrypointRepository { @Override public Completable delete(String id) { return Completable.fromPublisher(collection.deleteOne(eq(FIELD_ID, id))); }  @PostConstruct void init(); @Override Maybe<Entrypoint> findById(String id, String organizationId); @Override Maybe<Entrypoint> findById(String id); @Override Flowable<Entrypoint> findAll(String organizationId); @Override Single<Entrypoint> create(Entrypoint item); @Override Single<Entrypoint> update(Entrypoint item); @Override Completable delete(String id);  }