This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Observable.fromArray(1,2,3,4) | |
| .subscribeBy( | |
| onNext = { | |
| if(it==2){ | |
| throw (RuntimeException("Exception on 2")) | |
| } | |
| println(it) | |
| }, | |
| onComplete = { | |
| println("Completed") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Observable.fromArray(1,2,3,4) | |
| .subscribeBy( | |
| onNext = { | |
| println(it) | |
| }, | |
| onComplete = { | |
| println("Completed") | |
| }, | |
| onError = { | |
| println(it.message) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import junitparams.JUnitParamsRunner | |
| import junitparams.Parameters | |
| import org.junit.Test; | |
| import org.junit.Assert.*; | |
| import org.junit.Before | |
| import org.junit.runner.RunWith | |
| import org.junit.runners.Parameterized | |
| import java.util.* |
NewerOlder