david.bilik
01/05/2018, 11:35 AMorg.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Failed to generate function should convert exception to NoInternetConnectionException
Cause: Invalid class name (must be a fully qualified class name in internal form): .../model/repository/helper/ExceptionMapperHelperTest$should convert exception to NoInternetConnectionException$1
File being compiled and position: (42,5) in /.../model/repository/helper/ExceptionMapperHelperTest.kt
PsiElement: @Test
fun `should convert exception to NoInternetConnectionException`() {
with(object : ExceptionMapperHelper {}) {
Single.error<Unit>(SocketTimeoutException())
.mapHttpError()
.test()
.assertError { it is NoInternetException }
}
}