Title: String.join() with Enum.toString() inside - test generation fails · Issue #434 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: String.join() with Enum.toString() inside - test generation fails · Issue #434 · UnitTestBot/UTBotJava
X Title: String.join() with Enum.toString() inside - test generation fails · Issue #434 · UnitTestBot/UTBotJava
Description: Description Test generation fails for String.join() with Enum.toString() inside To Reproduce Steps to reproduce the behavior: IntelliJ IDEA with UTBotJava plugin installed A project with JDK 8/11 is opened Add the following class: public...
Open Graph Description: Description Test generation fails for String.join() with Enum.toString() inside To Reproduce Steps to reproduce the behavior: IntelliJ IDEA with UTBotJava plugin installed A project with JDK 8/11 i...
X Description: Description Test generation fails for String.join() with Enum.toString() inside To Reproduce Steps to reproduce the behavior: IntelliJ IDEA with UTBotJava plugin installed A project with JDK 8/11 i...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/434
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"String.join() with Enum.toString() inside - test generation fails","articleBody":"**Description**\r\n\r\nTest generation fails for String.join() with Enum.toString() inside\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n\r\n1. IntelliJ IDEA with UTBotJava plugin installed\r\n2. A project with JDK 8/11 is opened\r\n3. Add the following class:\r\n\r\n```\r\npublic class UsingEnum {\r\n\r\n public void execute() {\r\n String print = String.join(\"\\n\", \r\n WorkDays.Monday.toString(), \r\n WorkDays.Tuesday.toString());\r\n }\r\n\r\n public enum WorkDays {\r\n Monday,\r\n Tuesday,\r\n Wednesday,\r\n Thursday,\r\n Friday\r\n }\r\n}\r\n```\r\n4. Run Generating tests with UTBot... for this class\r\n\r\n**Expected behavior**\r\n\r\nTests are supposed to be generated.\r\n\r\n**Actual behavior**\r\n\r\n\"Failed to generate unit tests for class UsingEnum\" error popup is shown in IDEA.\r\nIt is shown immediately after test generation is started.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n\r\n\r\n**Environment**\r\n\r\nWindows 10 Pro\r\nIntelliJ IDEA 2022.1.3\r\nchecked on JDK 8 and 11, Gradle projects - same error\r\n\r\n**Additional context**\r\n\r\nAdding some input parameters to the method helps - fuzzer is generating tests.\r\n","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-07-06T09:48:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/434/UTBotJava/issues/434"}
| 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:6d8826b9-a8a2-cd85-8092-56e8c231db08 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB1E:5D9CD:3690F86:4990773:698DBD2C |
| html-safe-nonce | 44716ccc988edc032ccd444502f270a4ed2ded5a95fb96473c427b73f4fe8e7b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjFFOjVEOUNEOjM2OTBGODY6NDk5MDc3Mzo2OThEQkQyQyIsInZpc2l0b3JfaWQiOiIyMjk5MjQwNjU4NDA4MTYwNTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cb722f477a50503963d6aab3954d1a45bf8e05c2106647703df459a0942c9a2b |
| hovercard-subject-tag | issue:1295572776 |
| 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/434/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc61a7054ec5b94e7fcc04005ee049f29082319802cc9d79fba442b6f3c11e94/UnitTestBot/UTBotJava/issues/434 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc61a7054ec5b94e7fcc04005ee049f29082319802cc9d79fba442b6f3c11e94/UnitTestBot/UTBotJava/issues/434 |
| og:image:alt | Description Test generation fails for String.join() with Enum.toString() inside To Reproduce Steps to reproduce the behavior: IntelliJ IDEA with UTBotJava plugin installed A project with JDK 8/11 i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alisevych |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2457fd9a1b17ca7f38c3c2653895ccb2e0dd04f18f77446a21354e9bc4b7902f |
| 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 | 878672b82363fd98fbdc5bd0edb68e572c8a8d9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width