https://kotlinlang.org logo
#mockk
Title
s

suppoze

09/21/2018, 12:32 PM
Hi all, Can you give me some tips why I cannot stub the BigInteger property of this mock? It just stays at null.
Copy code
val myMockWithBigInteger = mockk<MyTypeWithBigInteger>().also { myMock ->
            every { myMock.bigIntProp } answers {
                if (shouldExist) BigInteger.valueOf(aLongValue) else nothing
            }
        }
2 Views