Skip to content
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

Closed
wants to merge 7 commits into from
Closed

Fix awt #883

wants to merge 7 commits into from

Conversation

SBOne-Kenobi
Copy link
Collaborator

@SBOne-Kenobi SBOne-Kenobi commented Sep 8, 2022

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.

  • Bug fix (non-breaking change which fixes an issue)
  • Refactoring (typos and non-functional changes)

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:

  • 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
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@SBOne-Kenobi SBOne-Kenobi self-assigned this Sep 8, 2022
@SBOne-Kenobi SBOne-Kenobi enabled auto-merge (squash) September 9, 2022 05:06
@SBOne-Kenobi SBOne-Kenobi force-pushed the sbone/awt-fix branch 4 times, most recently from ef88dfe to 0b84ee3 Compare September 12, 2022 08:51
Copy link
Member

@sergeypospelov sergeypospelov left a 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.

@sergeypospelov
Copy link
Member

sergeypospelov commented Sep 15, 2022

Created a mega-issue on providing a documentation: #932

@denis-fokin denis-fokin added this to the Release preparation milestone Sep 22, 2022
@SBOne-Kenobi SBOne-Kenobi force-pushed the sbone/awt-fix branch 2 times, most recently from 9cc67db to 515f289 Compare September 27, 2022 14:41
@SBOne-Kenobi SBOne-Kenobi force-pushed the sbone/awt-fix branch 3 times, most recently from a79f64c to 94a54e6 Compare October 4, 2022 11:52
@alisevych alisevych removed this from the Release preparation milestone Oct 7, 2022
@SBOne-Kenobi SBOne-Kenobi force-pushed the sbone/awt-fix branch 2 times, most recently from 6ee6af7 to a3ad120 Compare October 10, 2022 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.lang.UnsatisfiedLinkError: no awt in java.library.path
4 participants