ENT-11113 Removing test case that is not relevate with Kotlin 1.9.0 (#7638)

* ENT-11113 Removing test case that is not relevate with Kotlin 1.9.0

* ENT-11113 Fix test cases
This commit is contained in:
Balwant Kothari 2024-01-03 23:54:37 +05:30 committed by GitHub
parent 2e63ca6264
commit 5566d10863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,11 +41,9 @@ class RigorousMockTest {
} }
@Test(timeout=300_000) @Test(timeout=300_000)
@Ignore("TODO JDK17: Issue with private classes in Kotlin 1.8")
fun `callRealMethod is preferred by rigorousMock`() { fun `callRealMethod is preferred by rigorousMock`() {
rigorousMock<MyInterface>().let { m -> rigorousMock<MyInterface>().let { m ->
assertSame<Any>(UndefinedMockBehaviorException::class.java, catchThrowable { m.abstractFun() }.javaClass) assertSame<Any>(UndefinedMockBehaviorException::class.java, catchThrowable { m.abstractFun() }.javaClass)
assertSame<Any>(UndefinedMockBehaviorException::class.java, catchThrowable { m.kotlinDefaultFun() }.javaClass)
} }
rigorousMock<MyAbstract>().let { m -> rigorousMock<MyAbstract>().let { m ->
assertSame<Any>(UndefinedMockBehaviorException::class.java, catchThrowable { m.abstractFun() }.javaClass) assertSame<Any>(UndefinedMockBehaviorException::class.java, catchThrowable { m.abstractFun() }.javaClass)