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

Refine JDBC integration tests #1621

Closed
wants to merge 5 commits into from
Closed

Refine JDBC integration tests #1621

wants to merge 5 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Sep 20, 2023

Simplify test configuration, introduce @EnabledOnDatabase (run on a particular database if nothing else is configured, otherwise skip) and @ConditionalOnDatabase (test for a configuration). Also, introduce @IntegrationTest to apply common annotations to an integration test.

Replace @Autowired Class with TestClass to define a concept what this is for.

Replace closely distributed occurrences of profile strings with DatabaseType enumeration.

Introduce composed annotations and conditions to deduplicate annotations required for a test, to express database runtime conditions and database activation.
@mp911de mp911de requested a review from schauder September 20, 2023 10:18
@mp911de mp911de linked an issue Sep 20, 2023 that may be closed by this pull request
@mp911de mp911de added the type: task A general task label Sep 20, 2023
schauder pushed a commit that referenced this pull request Sep 22, 2023
Introduce composed annotations and conditions to deduplicate annotations required for a test, to express database runtime conditions and database activation.
Simplify test configuration.
Split tests into unit test and integration test run.

Original pull request #1621
Closes #1620
@schauder
Copy link
Contributor

That's a lot of cool stuff. Thanks.

Merged with 610bc45

@schauder schauder closed this Sep 22, 2023
@schauder schauder deleted the issue/1620 branch September 22, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refine JDBC integration tests
2 participants