mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-05-04 05:17:15 +01:00
Fix JUnit Jupiter discovery issues on 6.2.x
This commit is contained in:
+1
@@ -72,6 +72,7 @@ class AfterTestClassSqlScriptsTests extends AbstractTransactionalTests {
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMethodOrder(OrderAnnotation.class)
|
||||
@Sql(scripts = "recreate-schema.sql", executionPhase = BEFORE_TEST_CLASS)
|
||||
@Sql(scripts = "drop-schema.sql", executionPhase = AFTER_TEST_CLASS)
|
||||
class NestedAfterTestClassSqlScriptsTests {
|
||||
|
||||
-33
@@ -65,11 +65,9 @@ class AutowiredConfigurationErrorsIntegrationTests {
|
||||
@ParameterizedTest
|
||||
@ValueSource(classes = {
|
||||
StaticAutowiredBeforeAllMethod.class,
|
||||
StaticAutowiredPrivateBeforeAllMethod.class,
|
||||
StaticAutowiredAfterAllMethod.class,
|
||||
AutowiredBeforeEachMethod.class,
|
||||
AutowiredAfterEachMethod.class,
|
||||
AutowiredPrivateAfterEachMethod.class,
|
||||
AutowiredTestMethod.class,
|
||||
AutowiredRepeatedTestMethod.class,
|
||||
AutowiredParameterizedTestMethod.class
|
||||
@@ -168,21 +166,6 @@ class AutowiredConfigurationErrorsIntegrationTests {
|
||||
}
|
||||
}
|
||||
|
||||
@SpringJUnitConfig(Config.class)
|
||||
@FailingTestCase
|
||||
static class StaticAutowiredPrivateBeforeAllMethod {
|
||||
|
||||
@Autowired
|
||||
@BeforeAll
|
||||
private static void beforeAll(TestInfo testInfo) {
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName(DISPLAY_NAME)
|
||||
void test() {
|
||||
}
|
||||
}
|
||||
|
||||
@SpringJUnitConfig(Config.class)
|
||||
@TestInstance(PER_CLASS)
|
||||
@FailingTestCase
|
||||
@@ -260,22 +243,6 @@ class AutowiredConfigurationErrorsIntegrationTests {
|
||||
}
|
||||
}
|
||||
|
||||
@SpringJUnitConfig(Config.class)
|
||||
@FailingTestCase
|
||||
static class AutowiredPrivateAfterEachMethod {
|
||||
|
||||
@Test
|
||||
@DisplayName(DISPLAY_NAME)
|
||||
void test() {
|
||||
}
|
||||
|
||||
@Autowired
|
||||
@AfterEach
|
||||
private void afterEach(TestInfo testInfo) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SpringJUnitConfig(Config.class)
|
||||
@FailingTestCase
|
||||
static class AutowiredTestMethod {
|
||||
|
||||
Reference in New Issue
Block a user