test: enhance DefaultBeanDependencyResolverTest coverage toward 100%#174
Merged
mercyblitz merged 3 commits intomainfrom Mar 20, 2026
Merged
test: enhance DefaultBeanDependencyResolverTest coverage toward 100%#174mercyblitz merged 3 commits intomainfrom
mercyblitz merged 3 commits intomainfrom
Conversation
…test cases Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
mercyblitz
March 20, 2026 07:56
View session
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
…AnnotatedInjectionPointDependencyResolver, AnnotatedInjectionBeanPostProcessor, TTLCacheResolver, AbstractPageRenderContextHandlerInterceptor, ParallelPreInstantiationSingletonsBeanFactoryListener, DependencyAnalysisBeanFactoryListener, PropertySourcesUtils Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
Update ResourceInjectionPointDependencyResolverTest to expect and use the default generated bean name (resourceInjectionPointDependencyResolverTest). Replaced explicit @resource names and corresponding assertions (previously "explicitBeanName" and "myParam") with the generated bean name to align tests with current bean naming behavior.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



ResourceInjectionPointDependencyResolverTest(+8 tests):@Resource(type=...),@Resource(name=...), no-annotation early return, non-setter method name derivation, setter name derivation, explicit parameter nameAnnotatedInjectionPointDependencyResolverTest(new, 7 tests):getAnnotationType()via type inference for Autowired and Resource;getAnnotation(Field)present/absent;getAnnotation(Parameter)present/absentAnnotatedInjectionBeanPostProcessorTest(+4 tests): setter/getter round-trip for all flags,afterPropertiesSet+destroy,postProcessMergedBeanDefinition,determineCandidateConstructorsreturns null for unannotated classTTLCacheResolverTest(new, 4 tests):BEAN_NAMEconstant, resolver bean in context,resolveCacheswith MINUTES TTL,resolveCacheswith SECONDS TTLAbstractPageRenderContextHandlerInterceptorTest(+3 tests): empty view name not a page-render request, defaultpreHandlereturns true, defaultafterCompletiondoes not throwParallelPreInstantiationSingletonsBeanFactoryListenerTest(+2 tests): wrong-factory guard, threads=0 disables executorDependencyAnalysisBeanFactoryListenerTest(+1 test): run analysis on fresh factory with bean dependenciesPropertySourcesUtilsTest(+9 tests):getDefaultPropertiessingle-arg,getDefaultPropertiesPropertySourcesingle-arg and with existing source,containsPropertySource,containsBootstrapPropertySource,getPropertieson enumerable/non-enumerable,getPropertyNameson non-enumerable,findPropertyNameswith predicate,findConfiguredPropertySourceskips "configurationProperties" source🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.