Title: ArrayList.toString() - fails to generate tests · Issue #391 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: ArrayList.toString() - fails to generate tests · Issue #391 · UnitTestBot/UTBotJava
X Title: ArrayList.toString() - fails to generate tests · Issue #391 · UnitTestBot/UTBotJava
Description: Description Presence of ArrayList.toString() method leads to test generation failure. To Reproduce Steps to reproduce the behavior: Open IntelliJ IDEA Plugin is installed A project with JDK 8/11 is opened Add a class using ArrayList.toSt...
Open Graph Description: Description Presence of ArrayList.toString() method leads to test generation failure. To Reproduce Steps to reproduce the behavior: Open IntelliJ IDEA Plugin is installed A project with JDK 8/11 is...
X Description: Description Presence of ArrayList.toString() method leads to test generation failure. To Reproduce Steps to reproduce the behavior: Open IntelliJ IDEA Plugin is installed A project with JDK 8/11 is...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/391
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ArrayList.toString() - fails to generate tests ","articleBody":"**Description**\r\n\r\nPresence of ArrayList.toString() method leads to test generation failure.\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n\r\n1. Open IntelliJ IDEA\r\n2. Plugin is installed\r\n3. A project with JDK 8/11 is opened\r\n4. Add a class using ArrayList.toString() method, like:\r\n\r\n```\r\npublic class ListToStringExample {\r\n\r\n public void toStringList() {\r\n Arrays.asList(\"a\", \"b\", \"c\").toString();\r\n }\r\n}\r\n```\r\n\r\n**Expected behavior**\r\n\r\nTests should be successfully generated\r\n\r\n**Actual behavior**\r\n\r\nFailed to generate unit tests... popup is shown.\r\nTimeout increasing is suggested, but that doesn't help.\r\n**Failure is displayed in 2-3 seconds** , timeout is not reached.\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\nJDK 8, 11\r\n\r\n**Additional context**\r\n\r\nSame AbstractCollection.toString() implementation is called for this code - same error is displayed:\r\n\r\n```\r\npublic class ListToStringExample {\r\n\r\n public void toStringList() {\r\n List\u003cString\u003e list = new ArrayList\u003c\u003e();\r\n list.add(\"a\");\r\n list.add(\"b\");\r\n list.add(\"c\");\r\n list.toString();\r\n }\r\n}\r\n```\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-07-04T12:48:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/391/UTBotJava/issues/391"}
| 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:8ea59acd-dd40-ee64-85ae-0cd1be3f330a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 970A:AF4DA:402565:573E6F:698D8868 |
| html-safe-nonce | 1bdab2cfb12fc193bce2cf1af9024d8c1b482b211d534f5e5cb607ea9fced143 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzBBOkFGNERBOjQwMjU2NTo1NzNFNkY6Njk4RDg4NjgiLCJ2aXNpdG9yX2lkIjoiNjg2NTgyOTk2MjYwOTE2NjQ0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dda029ecc480913eba877aa78cac61be21a5bb2d18a8fd206bb443e7423672d9 |
| hovercard-subject-tag | issue:1293128859 |
| 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/391/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b1d60f9dea2a03d3c39076859801cd3e8f7c4a6630eb66fc27985e7e76e84578/UnitTestBot/UTBotJava/issues/391 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b1d60f9dea2a03d3c39076859801cd3e8f7c4a6630eb66fc27985e7e76e84578/UnitTestBot/UTBotJava/issues/391 |
| og:image:alt | Description Presence of ArrayList.toString() method leads to test generation failure. To Reproduce Steps to reproduce the behavior: Open IntelliJ IDEA Plugin is installed A project with JDK 8/11 is... |
| 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 | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| 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 | 4c8f4bd0b67d7f1472d0ab3f49827eaae062a36b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width