@@ -3530,20 +3530,20 @@ public void startWithFlowableNull() {
35303530 }
35313531
35323532 @ Test (expected = NullPointerException .class )
3533- public void endWithCompletableNull () {
3534- normal .completable .endWith ((Completable )null );
3533+ public void andThenCompletableNull () {
3534+ normal .completable .andThen ((Completable )null );
35353535 }
35363536
35373537 @ Test (expected = NullPointerException .class )
3538- public void endWithFlowableNull () {
3539- normal .completable .endWith ((Observable <Object >)null );
3538+ public void andThenFlowableNull () {
3539+ normal .completable .andThen ((Observable <Object >)null );
35403540 }
35413541
35423542 @ Test (timeout = 1000 )
3543- public void endWithCompletableNormal () {
3543+ public void andThenCompletableNormal () {
35443544 final AtomicBoolean run = new AtomicBoolean ();
35453545 Completable c = normal .completable
3546- .endWith (Completable .fromCallable (new Callable <Object >() {
3546+ .andThen (Completable .fromCallable (new Callable <Object >() {
35473547 @ Override
35483548 public Object call () throws Exception {
35493549 run .set (normal .get () == 0 );
@@ -3558,8 +3558,8 @@ public Object call() throws Exception {
35583558 }
35593559
35603560 @ Test (timeout = 1000 )
3561- public void endWithCompletableError () {
3562- Completable c = normal .completable .endWith (error .completable );
3561+ public void andThenCompletableError () {
3562+ Completable c = normal .completable .andThen (error .completable );
35633563
35643564 try {
35653565 c .await ();
@@ -3571,10 +3571,10 @@ public void endWithCompletableError() {
35713571 }
35723572
35733573 @ Test (timeout = 1000 )
3574- public void endWithFlowableNormal () {
3574+ public void andThenFlowableNormal () {
35753575 final AtomicBoolean run = new AtomicBoolean ();
35763576 Observable <Object > c = normal .completable
3577- .endWith (Observable .fromCallable (new Callable <Object >() {
3577+ .andThen (Observable .fromCallable (new Callable <Object >() {
35783578 @ Override
35793579 public Object call () throws Exception {
35803580 run .set (normal .get () == 0 );
@@ -3595,9 +3595,9 @@ public Object call() throws Exception {
35953595 }
35963596
35973597 @ Test (timeout = 1000 )
3598- public void endWithFlowableError () {
3598+ public void andThenFlowableError () {
35993599 Observable <Object > c = normal .completable
3600- .endWith (Observable .error (new TestException ()));
3600+ .andThen (Observable .error (new TestException ()));
36013601
36023602 TestSubscriber <Object > ts = new TestSubscriber <Object >();
36033603
0 commit comments