Polishing
This commit is contained in:
parent
41098d52d6
commit
fc81cc5cda
|
@ -132,11 +132,12 @@ class AotIntegrationTests extends AbstractAotTests {
|
|||
//
|
||||
// 2) Or you can use the TestClassScanner to find test classes.
|
||||
List<Class<?>> testClasses = createTestClassScanner()
|
||||
// Scan all packages.
|
||||
.scan()
|
||||
// Scan all base packages in spring-test.
|
||||
.scan("org.springframework.mock", "org.springframework.test")
|
||||
// Or limit execution to a particular package and its subpackages.
|
||||
// .scan("org.springframework.test.context.junit4")
|
||||
// Only include test classes named *Tests so that we don't pick up
|
||||
// - For example, to test @EJB and @PersistenceContext DI support:
|
||||
// .scan("org.springframework.test.context.testng.transaction.ejb")
|
||||
// We only include test classes named *Tests so that we don't pick up
|
||||
// internal TestCase classes that aren't really tests.
|
||||
.filter(clazz -> clazz.getSimpleName().endsWith("Tests"))
|
||||
.toList();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -58,7 +58,7 @@ class ExplicitPropertiesFileTestPropertySourceTests {
|
|||
@Nested
|
||||
@DisplayName("with absolute path")
|
||||
@TestPropertySource("/org/springframework/test/context/env/explicit.properties")
|
||||
class AbsolutePathPathTests extends AbstractExplicitPropertiesFileTests {
|
||||
class AbsolutePathTests extends AbstractExplicitPropertiesFileTests {
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -46,7 +46,7 @@ import static org.assertj.core.api.Assertions.fail;
|
|||
* @see HardCodedProfileValueSourceSpringRunnerTests
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@TestExecutionListeners( {})
|
||||
@TestExecutionListeners({})
|
||||
public class EnabledAndIgnoredSpringRunnerTests {
|
||||
|
||||
protected static final String NAME = "EnabledAndIgnoredSpringRunnerTests.profile_value.name";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
* @since 3.0
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@TestExecutionListeners( {})
|
||||
@TestExecutionListeners({})
|
||||
public class SpringJUnit47ClassRunnerRuleTests {
|
||||
|
||||
@Rule
|
||||
|
|
|
@ -37,7 +37,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
*
|
||||
* @author Sam Brannen
|
||||
* @since 5.0
|
||||
* @see org.springframework.test.context.junit.jupiter.nested.NestedTestsWithSpringAndJUnitJupiterTestCase
|
||||
* @see org.springframework.test.context.junit.jupiter.nested.ContextConfigurationNestedTests
|
||||
*/
|
||||
@RunWith(HierarchicalContextRunner.class)
|
||||
@ContextConfiguration(classes = TopLevelConfig.class)
|
||||
|
|
Loading…
Reference in New Issue