Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Rajiv Singh r4jiv007

🎯
Focusing
Block or report user

Report or block r4jiv007

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View IntervalTest.kt
@Test
fun test_polling_behaviour() {
Mockito.`when`(dataManager.getMatch(Mockito.anyInt())).thenReturn(
just(matchResponse))
Mockito.`when`(matchResponse.match()).thenReturn(mMatch)
val testScheduler = TestScheduler()
mSpyPresenter.setMatch(mMatch)
val testObserver = mSpyPresenter.getPollingObservable(MATCH_UPDATE_INTERVAL, testScheduler, testScheduler)
.subscribeOn(testScheduler)
.observeOn(testScheduler)
You can’t perform that action at this time.