Skip to content

Improve UtBotBeanFactoryPostProcessor to get more bean definitions #2119

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

Closed
wants to merge 3 commits into from

Conversation

EgorkaKulikov
Copy link
Collaborator

Description

UtBotBeanFactoryPostProcessor had some problems with situations like:

@Bean
public MyInterface initBean() {
   return new MyInterfaceImpl();
}

Actual bean type to return is MyInterfaceImpl, but previous implementation returned MyInterface.

This version should be replaced with something that does not call getBean later. Some details are provided in TODO in code.

How to test

Should not be tested as a separate feature, just as a part of 1st phase approach with selected configuration.

Self-check list

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

@EgorkaKulikov EgorkaKulikov added ctg-enhancement New feature, improvement or change request comp-spring Issue is related to Spring projects support labels Apr 10, 2023
@EgorkaKulikov
Copy link
Collaborator Author

Replaced with #2125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-spring Issue is related to Spring projects support ctg-enhancement New feature, improvement or change request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant