Title: Couldn't generate some tests: 2 occurrences of org.mockito.MockedStatic · Issue #981 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Couldn't generate some tests: 2 occurrences of org.mockito.MockedStatic · Issue #981 · UnitTestBot/UTBotJava
X Title: Couldn't generate some tests: 2 occurrences of org.mockito.MockedStatic · Issue #981 · UnitTestBot/UTBotJava
Description: Description In some case when mocking strategy applied no test code is generated. To Reproduce Use UNitTestBotJava project to reproduce the problem In UTBot settings enable Force mocking static methods and Code analysis to Deeper only Op...
Open Graph Description: Description In some case when mocking strategy applied no test code is generated. To Reproduce Use UNitTestBotJava project to reproduce the problem In UTBot settings enable Force mocking static met...
X Description: Description In some case when mocking strategy applied no test code is generated. To Reproduce Use UNitTestBotJava project to reproduce the problem In UTBot settings enable Force mocking static met...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/981
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Couldn't generate some tests: 2 occurrences of org.mockito.MockedStatic","articleBody":"**Description**\r\nIn some case when mocking strategy applied no test code is generated.\r\n\r\n**To Reproduce**\r\n1. Use [UNitTestBotJava](https://github.com/UnitTestBot/UTBotJava) project to reproduce the problem\r\n2. In UTBot settings enable `Force mocking static methods` and `Code analysis` to `Deeper` only\r\n3. Open class `utbot-sample/src/main/java/org/utbot/examples/mock/MockStaticMethodExample.java`\r\n4. Generate tests for the class with following settings: `Mock strategy = Mock class environment`, `Mock static methods` enabled\r\n\r\n**Expected behavior**\r\n\r\nSome tests are generated\r\n\r\n**Actual behavior**\r\n\r\nOne empty test is generated:\r\n```java\r\n public void testUseStaticMethod_errors() {\r\n // Couldn't generate some tests. List of errors:\r\n // \r\n // 2 occurrences of:\r\n // org.mockito.MockedStatic\r\n\r\n }\r\n```\r\n","author":{"url":"https://github.com/tyuldashev","@type":"Person","name":"tyuldashev"},"datePublished":"2022-09-20T13:50:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/981/UTBotJava/issues/981"}
| 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:524cc9d9-573d-30bd-08f9-151e9a358daa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8F0:38DCC4:30DFD64:4248C83:698DC78E |
| html-safe-nonce | 035b2f007b2c5dc9972696f71211d651140530edb06d81fe954208a43ab99f0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEYwOjM4RENDNDozMERGRDY0OjQyNDhDODM6Njk4REM3OEUiLCJ2aXNpdG9yX2lkIjoiNzI1MTgxOTQ1OTQ3OTcxNzc3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 495146b301cabfa3c6e5660c20844dfd8e5c5e2ee42d241cc408b248d73bb8b0 |
| hovercard-subject-tag | issue:1379459523 |
| 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/981/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8aae9fe4e4cfa4a8a4c6893d6a72dd7754b5bd104b46165aff451c6945cdd2f5/UnitTestBot/UTBotJava/issues/981 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8aae9fe4e4cfa4a8a4c6893d6a72dd7754b5bd104b46165aff451c6945cdd2f5/UnitTestBot/UTBotJava/issues/981 |
| og:image:alt | Description In some case when mocking strategy applied no test code is generated. To Reproduce Use UNitTestBotJava project to reproduce the problem In UTBot settings enable Force mocking static met... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tyuldashev |
| 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