Title: Fixed unavailable mock classes by Damtev · Pull Request #1066 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Fixed unavailable mock classes by Damtev · Pull Request #1066 · UnitTestBot/UTBotJava
X Title: Fixed unavailable mock classes by Damtev · Pull Request #1066 · UnitTestBot/UTBotJava
Description: Description After introducing nullability and single type parameter for Kotlin code generation, static mocks became broken - they were no longer considered as BuiltinClassId, which means they were tried to load with default class loader which is impossible due to classes from mock frameworks could not be load with it. This request makes mock classes builtin again - it fixes the problem but is incorrect for Kotlin code generation. The proper support of it should be designed and implemented together with generics in code generation (as planned in #88). Fixes #981. Type of Change Breaking change (fix or feature that would cause existing functionality to not work as expected) How Has This Been Tested? Manual Scenario Generating tests as mentioned in the issue. Checklist: The change followed the style guidelines of the UTBot project Self-review of the code is passed The change contains enough commentaries, particularly in hard-to-understand areas New documentation is provided or existed one is altered No new warnings All tests pass locally with my changes
Open Graph Description: Description After introducing nullability and single type parameter for Kotlin code generation, static mocks became broken - they were no longer considered as BuiltinClassId, which means they were ...
X Description: Description After introducing nullability and single type parameter for Kotlin code generation, static mocks became broken - they were no longer considered as BuiltinClassId, which means they were ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/1066
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:8b8c258e-f944-1195-4f01-bf18eb6ab04d |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A1D8:7A7D:C94870:115E2DD:698E15EB |
| html-safe-nonce | 3340a2e9f9c1a0406b16ec9a212ed00b5ade696dcb2524e3da292d1c4547e2e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUQ4OjdBN0Q6Qzk0ODcwOjExNUUyREQ6Njk4RTE1RUIiLCJ2aXNpdG9yX2lkIjoiNDkxMjEzNDIxMjUwNzUzODkyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d3411bf916d39b72f405be085a50baac750cf6ab23680d18655c8fb689b49b97 |
| hovercard-subject-tag | pull_request:1075624744 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/UnitTestBot/UTBotJava/pull/1066/checks |
| twitter:image | https://avatars.githubusercontent.com/u/39625503?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/39625503?s=400&v=4 |
| og:image:alt | Description After introducing nullability and single type parameter for Kotlin code generation, static mocks became broken - they were no longer considered as BuiltinClassId, which means they were ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52130a026bd9a3f98228b6aa6af91acdab5d18de411e2c1e67e6253493561296 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 301a1d7743177dcb7528b1322117cdafeda8ff08 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width