-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix awt #883
Fix awt #883
Conversation
ef88dfe
to
0b84ee3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice. Except the styling, my only concern is about performance -- it would be good to measure and compare it to the previous approach. As I remember, there were some problems with Mockito's performance in some cases.
Also, what about having a document on mocking in the child process? What do we mock with Mockito and what we do by ourself and how we do it.
utbot-framework/src/main/kotlin/org/utbot/framework/concrete/InstrumentationContext.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/concrete/MockUtil.kt
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/concrete/MockValueConstructor.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/concrete/MockValueConstructor.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/concrete/MockValueConstructor.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/concrete/MockValueConstructor.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/concrete/StaticMethodMockController.kt
Outdated
Show resolved
Hide resolved
Created a mega-issue on providing a documentation: #932 |
9cc67db
to
515f289
Compare
1a824ea
to
aa38b08
Compare
a79f64c
to
94a54e6
Compare
6ee6af7
to
a3ad120
Compare
a3ad120
to
3e68a25
Compare
Description
Our instrumentation can't mock static methods for system classes like
ImageIO.read(file)
. So I decided to rewrite mocking mechanism by using Mockito.Fixes #714
Type of Change
Please delete options that are not relevant.
How Has This Been Tested?
Automated Testing
org.utbot.examples.mixed.ImageIOUsageTest
org.utbot.examples.mixed.LoggerExampleTest
org.utbot.examples.mock.*
Manual Scenario
Described in issue #714
Checklist: