Register hints for test execution event annotations in the TCF

See gh-29044
This commit is contained in:
Sam Brannen
2022-08-31 13:07:47 +02:00
parent 2d35bbd74e
commit 40647bdaf6
2 changed files with 18 additions and 0 deletions

View File

@@ -99,6 +99,15 @@ class TestContextRuntimeHints implements RuntimeHintsRegistrar {
// Application Events
org.springframework.test.context.event.RecordApplicationEvents.class,
// Test execution events
org.springframework.test.context.event.annotation.AfterTestClass.class,
org.springframework.test.context.event.annotation.AfterTestExecution.class,
org.springframework.test.context.event.annotation.AfterTestMethod.class,
org.springframework.test.context.event.annotation.BeforeTestClass.class,
org.springframework.test.context.event.annotation.BeforeTestExecution.class,
org.springframework.test.context.event.annotation.BeforeTestMethod.class,
org.springframework.test.context.event.annotation.PrepareTestInstance.class,
// JUnit Jupiter
org.springframework.test.context.junit.jupiter.EnabledIf.class,
org.springframework.test.context.junit.jupiter.DisabledIf.class,