Skip to content

Commit fc81cc5

Browse files
committed
Polishing
1 parent 41098d5 commit fc81cc5

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,12 @@ void endToEndTestsForEntireSpringTestModule() {
132132
//
133133
// 2) Or you can use the TestClassScanner to find test classes.
134134
List<Class<?>> testClasses = createTestClassScanner()
135-
// Scan all packages.
136-
.scan()
135+
// Scan all base packages in spring-test.
136+
.scan("org.springframework.mock", "org.springframework.test")
137137
// Or limit execution to a particular package and its subpackages.
138-
// .scan("org.springframework.test.context.junit4")
139-
// Only include test classes named *Tests so that we don't pick up
138+
// - For example, to test @EJB and @PersistenceContext DI support:
139+
// .scan("org.springframework.test.context.testng.transaction.ejb")
140+
// We only include test classes named *Tests so that we don't pick up
140141
// internal TestCase classes that aren't really tests.
141142
.filter(clazz -> clazz.getSimpleName().endsWith("Tests"))
142143
.toList();

spring-test/src/test/java/org/springframework/test/context/env/ExplicitPropertiesFileTestPropertySourceTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -58,7 +58,7 @@ class ClasspathTests {
5858
@Nested
5959
@DisplayName("with absolute path")
6060
@TestPropertySource("/org/springframework/test/context/env/explicit.properties")
61-
class AbsolutePathPathTests extends AbstractExplicitPropertiesFileTests {
61+
class AbsolutePathTests extends AbstractExplicitPropertiesFileTests {
6262
}
6363

6464
@Nested

spring-test/src/test/java/org/springframework/test/context/junit4/EnabledAndIgnoredSpringRunnerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -46,7 +46,7 @@
4646
* @see HardCodedProfileValueSourceSpringRunnerTests
4747
*/
4848
@RunWith(SpringRunner.class)
49-
@TestExecutionListeners( {})
49+
@TestExecutionListeners({})
5050
public class EnabledAndIgnoredSpringRunnerTests {
5151

5252
protected static final String NAME = "EnabledAndIgnoredSpringRunnerTests.profile_value.name";

spring-test/src/test/java/org/springframework/test/context/junit4/SpringJUnit47ClassRunnerRuleTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@
3535
* @since 3.0
3636
*/
3737
@RunWith(SpringRunner.class)
38-
@TestExecutionListeners( {})
38+
@TestExecutionListeners({})
3939
public class SpringJUnit47ClassRunnerRuleTests {
4040

4141
@Rule

spring-test/src/test/java/org/springframework/test/context/junit4/nested/NestedTestsWithSpringRulesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
* @author Sam Brannen
3939
* @since 5.0
40-
* @see org.springframework.test.context.junit.jupiter.nested.NestedTestsWithSpringAndJUnitJupiterTestCase
40+
* @see org.springframework.test.context.junit.jupiter.nested.ContextConfigurationNestedTests
4141
*/
4242
@RunWith(HierarchicalContextRunner.class)
4343
@ContextConfiguration(classes = TopLevelConfig.class)

0 commit comments

Comments
 (0)