Title: Cannot set static final java.io.InputStream field java.lang.System · Issue #458 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Cannot set static final java.io.InputStream field java.lang.System · Issue #458 · UnitTestBot/UTBotJava
X Title: Cannot set static final java.io.InputStream field java.lang.System · Issue #458 · UnitTestBot/UTBotJava
Description: Description If we mock java.util.Scanner class, we get exceptions in the concrete executor -- cannot set field (see screenshot below) To Reproduce Steps to reproduce the behaviour: Run any project in IntelliJ Idea Create a method with sc...
Open Graph Description: Description If we mock java.util.Scanner class, we get exceptions in the concrete executor -- cannot set field (see screenshot below) To Reproduce Steps to reproduce the behaviour: Run any project ...
X Description: Description If we mock java.util.Scanner class, we get exceptions in the concrete executor -- cannot set field (see screenshot below) To Reproduce Steps to reproduce the behaviour: Run any project ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/458
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot set static final java.io.InputStream field java.lang.System","articleBody":"**Description**\r\n\r\nIf we mock `java.util.Scanner` class, we get exceptions in the concrete executor -- cannot set field (see screenshot below)\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behaviour:\r\n\r\n1. Run any project in IntelliJ Idea\r\n2. Create a method with scanner usage\r\n3. Use the plugin to generate tests\r\n4. Open the generated tests\r\n\r\n**Expected behaviour**\r\n\r\nCorrectly generated tests for the method\r\n\r\n**Actual behaviour**\r\n\r\nTests containing only exceptions\r\n\r\n**Visual proofs**\r\n\r\n\r\n\r\n\r\n**Environment**\r\n\r\nYou need to add `java.util.Scanner` into the set of classes to mock always (in the settings of UTBot). \r\n\r\n**Additional context**\r\nThere is no additional context.\r\n","author":{"url":"https://github.com/CaelmBleidd","@type":"Person","name":"CaelmBleidd"},"datePublished":"2022-07-08T07:58:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/458/UTBotJava/issues/458"}
| 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:18615395-63fa-9bee-a16d-fe84073912ec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB74:3B7F42:874460:AF9CB1:698FB92F |
| html-safe-nonce | 011c6ad1d5038a981bd00f4bbcfc164b27abe4c88e1f5161aa665fe15c17e7b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjc0OjNCN0Y0Mjo4NzQ0NjA6QUY5Q0IxOjY5OEZCOTJGIiwidmlzaXRvcl9pZCI6IjM5MTMzNTc4NzcyNjg0MjkxMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4a2e5489bc7d51cd444affed38e4a6beb1bb58a68f76eb0d8f4deae14633dfec |
| hovercard-subject-tag | issue:1298640262 |
| 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/458/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af0f9e14b647a2c80ebdacc409839dae6e690231a8dbbfd135bf00cbf3ef2def/UnitTestBot/UTBotJava/issues/458 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af0f9e14b647a2c80ebdacc409839dae6e690231a8dbbfd135bf00cbf3ef2def/UnitTestBot/UTBotJava/issues/458 |
| og:image:alt | Description If we mock java.util.Scanner class, we get exceptions in the concrete executor -- cannot set field (see screenshot below) To Reproduce Steps to reproduce the behaviour: Run any project ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CaelmBleidd |
| 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 | 4084c47bba08e7ba5fab63cb1dd485a339910ed7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width