use of rx.Completable in project storio by pushtorefresh.
the class PutOperationDesignTest method putContentValuesCompletable.
@Test
public void putContentValuesCompletable() {
ContentValues contentValues = mock(ContentValues.class);
Completable completable = storIOContentResolver().put().contentValues(contentValues).withPutResolver(putResolverForContentValues).prepare().asRxCompletable();
}
use of rx.Completable in project storio by pushtorefresh.
the class PutOperationDesignTest method putContentValuesIterableCompletable.
@Test
public void putContentValuesIterableCompletable() {
List<ContentValues> contentValuesList = new ArrayList<ContentValues>();
Completable completable = storIOContentResolver().put().contentValues(contentValuesList).withPutResolver(putResolverForContentValues).prepare().asRxCompletable();
}
use of rx.Completable in project storio by pushtorefresh.
the class PreparedPutContentValuesIterableTest method putContentValuesIterableCompletable.
@Test
public void putContentValuesIterableCompletable() {
final PutContentValuesStub putStub = PutContentValuesStub.newPutStubForMultipleContentValues();
final Completable completable = putStub.storIOContentResolver.put().contentValues(putStub.contentValues).withPutResolver(putStub.putResolver).prepare().asRxCompletable();
putStub.verifyBehaviorForMultipleContentValues(completable);
}
use of rx.Completable in project storio by pushtorefresh.
the class PreparedPutContentValuesTest method putContentValuesCompletable.
@Test
public void putContentValuesCompletable() {
final PutContentValuesStub putStub = PutContentValuesStub.newPutStubForOneContentValues();
final Completable completable = putStub.storIOContentResolver.put().contentValues(putStub.contentValues.get(0)).withPutResolver(putStub.putResolver).prepare().asRxCompletable();
putStub.verifyBehaviorForOneContentValues(completable);
}
use of rx.Completable in project storio by pushtorefresh.
the class DeleteOperationDesignTest method deleteObjectCompletable.
@Test
public void deleteObjectCompletable() {
User user = newUser();
Completable completableDelete = storIOSQLite().delete().object(user).withDeleteResolver(UserTableMeta.DELETE_RESOLVER).prepare().asRxCompletable();
}
Aggregations