Title: Compilation errors in code with setters generated on Kotlin · Issue #496 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Compilation errors in code with setters generated on Kotlin · Issue #496 · UnitTestBot/UTBotJava
X Title: Compilation errors in code with setters generated on Kotlin · Issue #496 · UnitTestBot/UTBotJava
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 Gen...
Open Graph 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 i...
X 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 use...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/496
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compilation errors in code with setters generated on Kotlin ","articleBody":"**Description**\r\n\r\nCreate Kotlin class\r\n\r\n```kotlin\r\nclass A {\r\n var a: Int = 0;\r\n}\r\n```\r\n\r\nCreate Java class\r\n\r\n```java\r\npublic class D {\r\n public boolean foo(A a) {\r\n return a.getA() \u003e 0;\r\n }\r\n}\r\n```\r\n\r\nand create tests for it. Assemble models are used in tests generation\r\n\r\n**Expected behavior**\r\n\r\nGenerated tests code is compilable.\r\n\r\n**Actual behavior**\r\n\r\nThe following code is generated\r\n\r\n```kotlin\r\n@Test\r\n@DisplayName(\"foo: AGetA -\u003e return a.getA() \u003e 0\")\r\nfun testFoo_AGetAGreaterThanZero() {\r\n val d = D()\r\n val a = A()\r\n a.setA(1)\r\n \r\n val actual = d.foo(a)\r\n \r\n assertTrue(actual)\r\n }\r\n```\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/EgorkaKulikov","@type":"Person","name":"EgorkaKulikov"},"datePublished":"2022-07-12T07:10:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/496/UTBotJava/issues/496"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1ed98d19-1997-6108-30a6-087a2ed1fc2e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B66C:1EEB7:51BA0E:733DF8:698DF491 |
| html-safe-nonce | 7ca75361ffead0fcdf7d06be38f31b32f114305ab1e7f48c440f5d43ab2d0cc1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjZDOjFFRUI3OjUxQkEwRTo3MzNERjg6Njk4REY0OTEiLCJ2aXNpdG9yX2lkIjoiNzMyODU5NTQ4NjE2NzUwMjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 74dc3547cea227bea5a573c53a7657be204d62ce6e920a759d41d00e0325e56b |
| hovercard-subject-tag | issue:1301637571 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/496/issue_layout |
| twitter:image | https://opengraph.githubassets.com/70d8e26132c076bde12a350ff65a33d84f91466c0c9d0709204d734fccf04c38/UnitTestBot/UTBotJava/issues/496 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/70d8e26132c076bde12a350ff65a33d84f91466c0c9d0709204d734fccf04c38/UnitTestBot/UTBotJava/issues/496 |
| og:image:alt | 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 i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EgorkaKulikov |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae22ef6ad27c5aeb770c5acd314c5724055bb23a663877aafdaaa50ed317ba34 |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e545f5becd5b3ce9b429b68c3f994ad93c680ddb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width