Skip to content

MockitoPostProcessor doesn't check FactoryBean.OBJECT_TYPE_ATTRIBUTE correctly#36224

Closed
bbulgarelli wants to merge 1 commit intospring-projects:mainfrom
bbulgarelli:issue-33746
Closed

MockitoPostProcessor doesn't check FactoryBean.OBJECT_TYPE_ATTRIBUTE correctly#36224
bbulgarelli wants to merge 1 commit intospring-projects:mainfrom
bbulgarelli:issue-33746

Conversation

@bbulgarelli
Copy link
Copy Markdown
Contributor

This PR relates to the issue #33746. I added conditionals that verify if FactoryBean.OBJECT_TYPE_ATTRIBUTE is an instance of Class<?> or ResolvableType and I also created two more tests that test the object type attribute with Class and ResolvableType values.

… and ResovableType; and creating appropriate tests
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 5, 2023
@wilkinsona wilkinsona changed the title Adding necessary checks MockitoPostProcessor.getExistingBeans MockitoPostProcessor doesn't check FactoryBean.OBJECT_TYPE_ATTRIBUTE correctly Jul 5, 2023
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 5, 2023
@wilkinsona wilkinsona added this to the 2.7.x milestone Jul 5, 2023
@wilkinsona wilkinsona self-assigned this Jul 5, 2023
@wilkinsona wilkinsona modified the milestones: 2.7.x, 2.7.14 Jul 5, 2023
@wilkinsona wilkinsona closed this in 300e507 Jul 5, 2023
@wilkinsona
Copy link
Copy Markdown
Member

Thanks very much, @bbulgarelli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants