Skip to content

Commit

Permalink
Merge pull request #286 from zonkyio/fix-annotation-processing
Browse files Browse the repository at this point in the history
#277 Prevent EmbeddedDatabaseTestExecutionListener from affecting non-annotated tests
  • Loading branch information
tomix26 authored Nov 25, 2024
2 parents 49e474f + ecfa006 commit 5a1befb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ private void captureTestClassPreparers(TestContext testContext, RefreshMode... r
private void forEachDatabase(TestContext testContext, RefreshMode[] refreshModes, BiConsumer<DatabaseContext, AutoConfigureEmbeddedDatabase> action) {
Set<AutoConfigureEmbeddedDatabase> annotations = AnnotationUtils.getDatabaseAnnotations(testContext.getTestClass());

if (annotations.isEmpty()) {
return;
}

ApplicationContext applicationContext = testContext.getApplicationContext();
Environment environment = applicationContext.getEnvironment();

Expand Down

0 comments on commit 5a1befb

Please sign in to comment.