@Test public void delete() throws TechnicalException { PermissionTicket permissionTicket = new PermissionTicket().setPermissionRequest(Arrays.asList(permission)); PermissionTicket ptCreated = repository.create(permissionTicket).blockingGet(); TestObserver<Void> testObserver = repository.delete(ptCreated.getId()).test(); testObserver.awaitTerminalEvent(); testObserver.assertComplete(); testObserver.assertNoErrors(); testObserver.assertNoValues(); }
@Override public Completable delete(String id) { return Completable.fromPublisher(permissionTicketCollection.deleteOne(eq(FIELD_ID, id))); }
MongoPermissionTicketRepository extends AbstractManagementMongoRepository implements PermissionTicketRepository { @Override public Completable delete(String id) { return Completable.fromPublisher(permissionTicketCollection.deleteOne(eq(FIELD_ID, id))); } }
MongoPermissionTicketRepository extends AbstractManagementMongoRepository implements PermissionTicketRepository { @Override public Completable delete(String id) { return Completable.fromPublisher(permissionTicketCollection.deleteOne(eq(FIELD_ID, id))); }  }
MongoPermissionTicketRepository extends AbstractManagementMongoRepository implements PermissionTicketRepository { @Override public Completable delete(String id) { return Completable.fromPublisher(permissionTicketCollection.deleteOne(eq(FIELD_ID, id))); }  @PostConstruct void init(); @Override Maybe<PermissionTicket> findById(String id); @Override Single<PermissionTicket> create(PermissionTicket ticket); @Override Single<PermissionTicket> update(PermissionTicket ticket); @Override Completable delete(String id); }
MongoPermissionTicketRepository extends AbstractManagementMongoRepository implements PermissionTicketRepository { @Override public Completable delete(String id) { return Completable.fromPublisher(permissionTicketCollection.deleteOne(eq(FIELD_ID, id))); }  @PostConstruct void init(); @Override Maybe<PermissionTicket> findById(String id); @Override Single<PermissionTicket> create(PermissionTicket ticket); @Override Single<PermissionTicket> update(PermissionTicket ticket); @Override Completable delete(String id); static final String COLLECTION_NAME; }