René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6feff721-c69e-cc71-79aa-1761acf51b69
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9A62:93146:1A6625:23175F:698E4C86
html-safe-noncea50ace31c42f5c580fed228375f57f0b078bd998833330bd69afc986b745bd3a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTYyOjkzMTQ2OjFBNjYyNToyMzE3NUY6Njk4RTRDODYiLCJ2aXNpdG9yX2lkIjoiNTYzODgzNjgwMzQ3NTQ5MTk3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1d87e25343565a0762b083009209ce8563bf8c31ad597764b5599546b7177146
hovercard-subject-tagpull_request:1075624744
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/UnitTestBot/UTBotJava/pull/1066/files
twitter:imagehttps://avatars.githubusercontent.com/u/39625503?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/39625503?s=400&v=4
og:image:altDescription 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e08b85f0035d49bc4c22868f70a4d30fb8c2a777936895c37e78df095242ddc
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git
octolytics-dimension-user_id87413538
octolytics-dimension-user_loginUnitTestBot
octolytics-dimension-repository_id480810501
octolytics-dimension-repository_nwoUnitTestBot/UTBotJava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id480810501
octolytics-dimension-repository_network_root_nwoUnitTestBot/UTBotJava
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseab1cf30f0feb8db377fc0d52bc41f0105f9b4181
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/UnitTestBot/UTBotJava/pull/1066/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnitTestBot%2FUTBotJava%2Fpull%2F1066%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnitTestBot%2FUTBotJava%2Fpull%2F1066%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=UnitTestBot%2FUTBotJava
Reloadhttps://github.com/UnitTestBot/UTBotJava/pull/1066/files
Reloadhttps://github.com/UnitTestBot/UTBotJava/pull/1066/files
Reloadhttps://github.com/UnitTestBot/UTBotJava/pull/1066/files
UnitTestBot https://github.com/UnitTestBot
UTBotJavahttps://github.com/UnitTestBot/UTBotJava
Notifications https://github.com/login?return_to=%2FUnitTestBot%2FUTBotJava
Fork 45 https://github.com/login?return_to=%2FUnitTestBot%2FUTBotJava
Star 142 https://github.com/login?return_to=%2FUnitTestBot%2FUTBotJava
Code https://github.com/UnitTestBot/UTBotJava
Issues 386 https://github.com/UnitTestBot/UTBotJava/issues
Pull requests 33 https://github.com/UnitTestBot/UTBotJava/pulls
Discussions https://github.com/UnitTestBot/UTBotJava/discussions
Actions https://github.com/UnitTestBot/UTBotJava/actions
Projects 1 https://github.com/UnitTestBot/UTBotJava/projects
Wiki https://github.com/UnitTestBot/UTBotJava/wiki
Security 0 https://github.com/UnitTestBot/UTBotJava/security
Insights https://github.com/UnitTestBot/UTBotJava/pulse
Code https://github.com/UnitTestBot/UTBotJava
Issues https://github.com/UnitTestBot/UTBotJava/issues
Pull requests https://github.com/UnitTestBot/UTBotJava/pulls
Discussions https://github.com/UnitTestBot/UTBotJava/discussions
Actions https://github.com/UnitTestBot/UTBotJava/actions
Projects https://github.com/UnitTestBot/UTBotJava/projects
Wiki https://github.com/UnitTestBot/UTBotJava/wiki
Security https://github.com/UnitTestBot/UTBotJava/security
Insights https://github.com/UnitTestBot/UTBotJava/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FUnitTestBot%2FUTBotJava%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FUnitTestBot%2FUTBotJava%2Fissues%2Fnew%2Fchoose
Damtevhttps://github.com/Damtev
mainhttps://github.com/UnitTestBot/UTBotJava/tree/main
damtev/static_mocks_fixhttps://github.com/UnitTestBot/UTBotJava/tree/damtev/static_mocks_fix
Conversation 0 https://github.com/UnitTestBot/UTBotJava/pull/1066
Commits 2 https://github.com/UnitTestBot/UTBotJava/pull/1066/commits
Checks 0 https://github.com/UnitTestBot/UTBotJava/pull/1066/checks
Files changed https://github.com/UnitTestBot/UTBotJava/pull/1066/files
Please reload this pagehttps://github.com/UnitTestBot/UTBotJava/pull/1066/files
Fixed unavailable mock classes https://github.com/UnitTestBot/UTBotJava/pull/1066/files#top
Show all changes 2 commits https://github.com/UnitTestBot/UTBotJava/pull/1066/files
a53d179 Fixed error with unavailable mock classes from mock framework Damtev Oct 4, 2022 https://github.com/UnitTestBot/UTBotJava/pull/1066/commits/a53d1795f4326ff1c6c0586050c2bcf0f9cdaeab
4c29331 Disabled Kotlin codegen tests with static mocks Damtev Oct 4, 2022 https://github.com/UnitTestBot/UTBotJava/pull/1066/commits/4c2933194d99da14a676f7f22e12d537a77aeeb2
Clear filters https://github.com/UnitTestBot/UTBotJava/pull/1066/files
Please reload this pagehttps://github.com/UnitTestBot/UTBotJava/pull/1066/files
Please reload this pagehttps://github.com/UnitTestBot/UTBotJava/pull/1066/files
SortTest.kt https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-1bb83470e122fe8d55eb6f505f8daea0f96300eed3b0b090b9a401183b893a07
MockRandomTest.kt https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-db2ac96fb7d002823e2825d710d77f7c2c7b6544cbc0c9b77c1132b38475df9d
MockStaticMethodExampleTest.kt https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-1e0d3f202c3770b7df32c8439f4a67355263e6b9089b4ea417fa26c8856768c4
NativeExamplesTest.kt https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-da383c71b9e8466411270ce9d585666498fb444d06cd73b217ea6bb867cd9a7b
RecursionTest.kt https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-8c788fda2db499ced1a65d032112f4cf177ec96e979d22f72bd609782482e296
CgMethodConstructor.kt https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-0b9fbbacf7ddf012a9f04bdf76ff1e2abecd67e81b107454f04c543c47efa430
MockFrameworkManager.kt https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-76b3b3de232dc262b2162b819b9f572aa44bb24a652426c237ccb8c17eb104fe
utbot-framework-test/src/test/kotlin/org/utbot/examples/algorithms/SortTest.kthttps://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-1bb83470e122fe8d55eb6f505f8daea0f96300eed3b0b090b9a401183b893a07
View file https://github.com/UnitTestBot/UTBotJava/blob/4c2933194d99da14a676f7f22e12d537a77aeeb2/utbot-framework-test/src/test/kotlin/org/utbot/examples/algorithms/SortTest.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UnitTestBot/UTBotJava/pull/1066/{{ revealButtonHref }}
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-1bb83470e122fe8d55eb6f505f8daea0f96300eed3b0b090b9a401183b893a07
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-1bb83470e122fe8d55eb6f505f8daea0f96300eed3b0b090b9a401183b893a07
utbot-framework-test/src/test/kotlin/org/utbot/examples/mock/MockRandomTest.kthttps://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-db2ac96fb7d002823e2825d710d77f7c2c7b6544cbc0c9b77c1132b38475df9d
View file https://github.com/UnitTestBot/UTBotJava/blob/4c2933194d99da14a676f7f22e12d537a77aeeb2/utbot-framework-test/src/test/kotlin/org/utbot/examples/mock/MockRandomTest.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UnitTestBot/UTBotJava/pull/1066/{{ revealButtonHref }}
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-db2ac96fb7d002823e2825d710d77f7c2c7b6544cbc0c9b77c1132b38475df9d
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-db2ac96fb7d002823e2825d710d77f7c2c7b6544cbc0c9b77c1132b38475df9d
utbot-framework-test/src/test/kotlin/org/utbot/examples/mock/MockStaticMethodExampleTest.kthttps://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-1e0d3f202c3770b7df32c8439f4a67355263e6b9089b4ea417fa26c8856768c4
View file https://github.com/UnitTestBot/UTBotJava/blob/4c2933194d99da14a676f7f22e12d537a77aeeb2/utbot-framework-test/src/test/kotlin/org/utbot/examples/mock/MockStaticMethodExampleTest.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UnitTestBot/UTBotJava/pull/1066/{{ revealButtonHref }}
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-1e0d3f202c3770b7df32c8439f4a67355263e6b9089b4ea417fa26c8856768c4
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-1e0d3f202c3770b7df32c8439f4a67355263e6b9089b4ea417fa26c8856768c4
utbot-framework-test/src/test/kotlin/org/utbot/examples/natives/NativeExamplesTest.kthttps://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-da383c71b9e8466411270ce9d585666498fb444d06cd73b217ea6bb867cd9a7b
View file https://github.com/UnitTestBot/UTBotJava/blob/4c2933194d99da14a676f7f22e12d537a77aeeb2/utbot-framework-test/src/test/kotlin/org/utbot/examples/natives/NativeExamplesTest.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UnitTestBot/UTBotJava/pull/1066/{{ revealButtonHref }}
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-da383c71b9e8466411270ce9d585666498fb444d06cd73b217ea6bb867cd9a7b
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-da383c71b9e8466411270ce9d585666498fb444d06cd73b217ea6bb867cd9a7b
utbot-framework-test/src/test/kotlin/org/utbot/examples/recursion/RecursionTest.kthttps://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-8c788fda2db499ced1a65d032112f4cf177ec96e979d22f72bd609782482e296
View file https://github.com/UnitTestBot/UTBotJava/blob/4c2933194d99da14a676f7f22e12d537a77aeeb2/utbot-framework-test/src/test/kotlin/org/utbot/examples/recursion/RecursionTest.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UnitTestBot/UTBotJava/pull/1066/{{ revealButtonHref }}
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-8c788fda2db499ced1a65d032112f4cf177ec96e979d22f72bd609782482e296
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-8c788fda2db499ced1a65d032112f4cf177ec96e979d22f72bd609782482e296
...src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgMethodConstructor.kthttps://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-0b9fbbacf7ddf012a9f04bdf76ff1e2abecd67e81b107454f04c543c47efa430
View file https://github.com/UnitTestBot/UTBotJava/blob/4c2933194d99da14a676f7f22e12d537a77aeeb2/utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgMethodConstructor.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UnitTestBot/UTBotJava/pull/1066/{{ revealButtonHref }}
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-0b9fbbacf7ddf012a9f04bdf76ff1e2abecd67e81b107454f04c543c47efa430
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-0b9fbbacf7ddf012a9f04bdf76ff1e2abecd67e81b107454f04c543c47efa430
...rc/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/MockFrameworkManager.kthttps://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-76b3b3de232dc262b2162b819b9f572aa44bb24a652426c237ccb8c17eb104fe
View file https://github.com/UnitTestBot/UTBotJava/blob/4c2933194d99da14a676f7f22e12d537a77aeeb2/utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/MockFrameworkManager.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UnitTestBot/UTBotJava/pull/1066/{{ revealButtonHref }}
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-76b3b3de232dc262b2162b819b9f572aa44bb24a652426c237ccb8c17eb104fe
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-76b3b3de232dc262b2162b819b9f572aa44bb24a652426c237ccb8c17eb104fe
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-76b3b3de232dc262b2162b819b9f572aa44bb24a652426c237ccb8c17eb104fe
https://github.com/UnitTestBot/UTBotJava/pull/1066/files#diff-76b3b3de232dc262b2162b819b9f572aa44bb24a652426c237ccb8c17eb104fe
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.