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
package com.neworldwar | |
import com.neworldwar.utils.Random | |
import org.junit.jupiter.api.BeforeAll | |
import org.junit.jupiter.api.RepeatedTest | |
import org.junit.jupiter.api.TestInstance | |
const val REQUESTS = 100 | |
const val TOTAL_DEPENDENCIES = 1000 | |
const val DEPENDENCIES_PER_REQUEST = 100 |
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
package com.vinted.drawables | |
import android.content.res.ColorStateList | |
import android.graphics.* | |
import android.graphics.drawable.Drawable | |
import android.text.DynamicLayout | |
import android.text.Editable | |
import android.text.Layout | |
import android.text.TextPaint |
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
@Test(timeout = 10000) | |
fun secondSubscription_returnsImmediate() { | |
val subject = PublishSubject.create<Int>() | |
val cachedSubject = subject.successOnlyCache() | |
cachedSubject.test() //first subscription | |
cachedSubject.test() //second subscription | |
//this method will never finishes if subscription is blocked. | |
} |
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
package com.vinted.feature.base.ui.rx | |
import io.reactivex.Observable | |
import io.reactivex.Observer | |
import io.reactivex.disposables.Disposable | |
/** | |
* | |
* Breaks dispose chain. Upstream will be not be disposed. | |
* This class should be used in cases where you need guarantee upstream will be executed at any price. |
OlderNewer