Title: Unexpected tests for some inherited methods on enums · Issue #457 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Unexpected tests for some inherited methods on enums · Issue #457 · UnitTestBot/UTBotJava
X Title: Unexpected tests for some inherited methods on enums · Issue #457 · UnitTestBot/UTBotJava
Description: Description Generated tests for enum contain methods testing valueOf To Reproduce Run Contest Estimator with method com.google.common.base.CaseFormat.* and 300s time limit. Actual behavior Generated tests contain the following: @Test //@...
Open Graph Description: Description Generated tests for enum contain methods testing valueOf To Reproduce Run Contest Estimator with method com.google.common.base.CaseFormat.* and 300s time limit. Actual behavior Generate...
X Description: Description Generated tests for enum contain methods testing valueOf To Reproduce Run Contest Estimator with method com.google.common.base.CaseFormat.* and 300s time limit. Actual behavior Generate...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/457
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected tests for some inherited methods on enums","articleBody":"**Description**\r\n\r\nGenerated tests for enum contain methods testing valueOf\r\n\r\n**To Reproduce**\r\n\r\n1. Run Contest Estimator with method `com.google.common.base.CaseFormat.*` and 300s time limit.\r\n\r\n**Actual behavior**\r\n\r\nGenerated tests contain the following:\r\n```java\r\n @Test\r\n //@org.junit.jupiter.api.DisplayName(\"valueOf: arg_0 = blank string -\u003e throw IllegalArgumentException\")\r\n public void testValueOfThrowsIAEWithBlankString() {\r\n /* This test fails because executable under testing com.google.common.base.CaseFormat.valueOf\r\n produces Runtime exception java.lang.IllegalArgumentException: No enum constant com.google.common.base.CaseFormat. */\r\n CaseFormat.valueOf(\" \");\r\n }\r\n\r\n @Test\r\n //@org.junit.jupiter.api.DisplayName(\"valueOf: arg_0 has special characters -\u003e throw IllegalArgumentException\")\r\n public void testValueOfThrowsIAEWithBlankString1() {\r\n /* This test fails because executable under testing com.google.common.base.CaseFormat.valueOf\r\n produces Runtime exception java.lang.IllegalArgumentException: No enum constant com.google.common.base.CaseFormat.\r\n\t\r\n */\r\n CaseFormat.valueOf(\"\\n\\t\\r\");\r\n }\r\n```\r\n","author":{"url":"https://github.com/sofurihafe","@type":"Person","name":"sofurihafe"},"datePublished":"2022-07-08T07:48:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/457/UTBotJava/issues/457"}
| 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:fe46a007-ca20-4e4c-762b-72f1d705171b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A958:3B448:3E51D0:55CAE1:698DF429 |
| html-safe-nonce | 242ff6e96bab4dd863e4a93a9f1ee5894576673725b66fff14db2896dd7324c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTU4OjNCNDQ4OjNFNTFEMDo1NUNBRTE6Njk4REY0MjkiLCJ2aXNpdG9yX2lkIjoiNzYzMjE5ODMzMzE5NzMxNzE2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 958c072ccbf2f016345f8e92e3c0dc951c03fe63e24a08be55def16cc2415328 |
| hovercard-subject-tag | issue:1298630055 |
| 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/457/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43e6aead7f1623167676f344474355f5a76d72fce9585d966f1644158bdafc48/UnitTestBot/UTBotJava/issues/457 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43e6aead7f1623167676f344474355f5a76d72fce9585d966f1644158bdafc48/UnitTestBot/UTBotJava/issues/457 |
| og:image:alt | Description Generated tests for enum contain methods testing valueOf To Reproduce Run Contest Estimator with method com.google.common.base.CaseFormat.* and 300s time limit. Actual behavior Generate... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sofurihafe |
| 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