Description
Create Kotlin class
class A {
var a: Int = 0;
}
Create Java class
public class D {
public boolean foo(A a) {
return a.getA() > 0;
}
}
and create tests for it. Assemble models are used in tests generation
Expected behavior
Generated tests code is compilable.
Actual behavior
The following code is generated
@Test
@DisplayName("foo: AGetA -> return a.getA() > 0")
fun testFoo_AGetAGreaterThanZero() {
val d = D()
val a = A()
a.setA(1)
val actual = d.foo(a)
assertTrue(actual)
}
Visual proofs (screenshots, logs, images)

Description
Create Kotlin class
Create Java class
and create tests for it. Assemble models are used in tests generation
Expected behavior
Generated tests code is compilable.
Actual behavior
The following code is generated
Visual proofs (screenshots, logs, images)