Skip to content

Conversation

radovanradic
Copy link
Contributor

Reproducer for the issue reported here.

def dataSource = dataSourceResolver.resolve(applicationContext.getBean(DataSource))

then:
dataSource instanceof CustomDataSource
Copy link
Contributor Author

@radovanradic radovanradic Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test in jdbc-hikari module passes. Only when testAnnotationProcessor(mn.micronaut.inject.java) is removed it fails like in the hikari-h2-tests module

Assertions.assertTrue(applicationContext.containsBean(DatasourceConfiguration.class));

DataSource dataSource = dataSourceResolver.resolve(applicationContext.getBean(DataSource.class));
Assertions.assertTrue(dataSource instanceof CustomHikariUrlDataSource);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fails unlike groovy test in jdbc-hikari module.

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.

1 participant