mirror of
https://github.com/corda/corda.git
synced 2024-12-20 21:43:14 +00:00
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:
parent
2e63ca6264
commit
5566d10863
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user