2023-01-26 11:12:44 -08:00
|
|
|
package co.electriccoin.zcash.crash.android.internal.local
|
2022-05-31 09:38:02 -07:00
|
|
|
|
|
|
|
import co.electriccoin.zcash.crash.ReportableException
|
|
|
|
import co.electriccoin.zcash.crash.fixture.ReportableExceptionFixture
|
|
|
|
import org.junit.Assert.assertEquals
|
|
|
|
import org.junit.Test
|
|
|
|
|
|
|
|
class ReportableExceptionTest {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
fun bundle() {
|
|
|
|
val reportableException = ReportableExceptionFixture.new()
|
|
|
|
|
|
|
|
val bundle = reportableException.toBundle()
|
|
|
|
val fromBundle = ReportableException.fromBundle(bundle)
|
|
|
|
|
|
|
|
assertEquals(reportableException, fromBundle)
|
|
|
|
}
|
|
|
|
}
|