-   Notifications  
You must be signed in to change notification settings  - Fork 45
 
Closed
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a buglang-kotlinIssue is related to Kotlin language supportIssue is related to Kotlin language support
Description
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)
Metadata
Metadata
Assignees
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a buglang-kotlinIssue is related to Kotlin language supportIssue is related to Kotlin language support
Type
Projects
Status
Done
