use of io.reactivex.Completable in project rxjava2-jdbc by davidmoten.
the class DatabaseTest method testComplete.
@Test
public void testComplete() throws InterruptedException {
Database db = db(1);
Completable a = //
db.update(//
"update person set score=-3 where name='FRED'").complete();
//
db.update("update person set score=-4 where score = -3").dependsOn(//
a).counts().test().assertValue(//
1).assertComplete();
}
Aggregations