Title: Conflict in users and junit names leads to compilation errors · Issue #1038 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Conflict in users and junit names leads to compilation errors · Issue #1038 · UnitTestBot/UTBotJava
X Title: Conflict in users and junit names leads to compilation errors · Issue #1038 · UnitTestBot/UTBotJava
Description: To Reproduce Run UtBot via plugin on the following class public class Test { public boolean foo(boolean b) { return !b; } } Generated tests looks like @Test @DisplayName("foo: return !b : False -> return !b") public void testFoo_NotB() {...
Open Graph Description: To Reproduce Run UtBot via plugin on the following class public class Test { public boolean foo(boolean b) { return !b; } } Generated tests looks like @Test @DisplayName("foo: return !b : False -> ...
X Description: To Reproduce Run UtBot via plugin on the following class public class Test { public boolean foo(boolean b) { return !b; } } Generated tests looks like @Test @DisplayName("foo: return !b : Fals...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1038
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Conflict in users and junit names leads to compilation errors","articleBody":"**To Reproduce**\r\n\r\nRun UtBot via plugin on the following class\r\n\r\n```java\r\npublic class Test {\r\n public boolean foo(boolean b) {\r\n return !b;\r\n }\r\n}\r\n```\r\n\r\nGenerated tests looks like \r\n\r\n```java\r\n@Test\r\n @DisplayName(\"foo: return !b : False -\u003e return !b\")\r\n public void testFoo_NotB() {\r\n Test test = new Test();\r\n\r\n boolean actual = test.foo(true);\r\n\r\n assertFalse(actual);\r\n }\r\n```\r\n\r\n**Actual behavior**\r\n\r\nThis code does not compile because `Test` as a name of the class conflicts with a name from JUnit imports `org.junit.jupiter.api.Test`","author":{"url":"https://github.com/EgorkaKulikov","@type":"Person","name":"EgorkaKulikov"},"datePublished":"2022-09-30T07:08:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1038/UTBotJava/issues/1038"}
| 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:31d5e5d4-c23b-04c0-988d-390d2a9d153a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FB4:1D84DC:223E4A2:2BD8D40:69901579 |
| html-safe-nonce | e0f7277bf46b7a119e99f245c4d858339b5f13bca214c7d29630d47f0ce98cc2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkI0OjFEODREQzoyMjNFNEEyOjJCRDhENDA6Njk5MDE1NzkiLCJ2aXNpdG9yX2lkIjoiMTM2MTM1MDYwODQ4NTg4MTIwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5fc7eadae6065fbd7ea90969c535e3dc07665a56914ea9225f9aca6d43ed3ea |
| hovercard-subject-tag | issue:1391951328 |
| 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/1038/issue_layout |
| twitter:image | https://opengraph.githubassets.com/13dcf28facaa7511e9f507df4f575622fafe1ca0601cc529e186a7191cf5ece7/UnitTestBot/UTBotJava/issues/1038 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/13dcf28facaa7511e9f507df4f575622fafe1ca0601cc529e186a7191cf5ece7/UnitTestBot/UTBotJava/issues/1038 |
| og:image:alt | To Reproduce Run UtBot via plugin on the following class public class Test { public boolean foo(boolean b) { return !b; } } Generated tests looks like @Test @DisplayName("foo: return !b : False -> ... |
| 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 | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width