Skip to content

Commit 65daea1

Browse files
committed
Polish tests for the SpringExtension
1 parent 1ea043d commit 65daea1

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/ActiveProfilesTestClassScopedExtensionContextNestedTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ void test() {
158158
}
159159
}
160160
}
161-
162161
}
163162

164163
// -------------------------------------------------------------------------

spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/ContextConfigurationTestClassScopedExtensionContextNestedTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void test() {
8888

8989
@Nested
9090
@NestedTestConfiguration(INHERIT)
91-
class NestedTestCaseWithInheritedConfigTests {
91+
class NestedWithInheritedConfigTests {
9292

9393
@Autowired(required = false)
9494
@Qualifier("foo")

spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/TestExecutionListenersNestedTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ void test() {
134134
}
135135
}
136136
}
137-
138137
}
139138

140139
// -------------------------------------------------------------------------

spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/TestPropertySourceTestClassScopedExtensionContextNestedTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.springframework.test.context.TestPropertySource;
2828
import org.springframework.test.context.junit.jupiter.SpringExtension;
2929
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
30-
import org.springframework.test.context.junit.jupiter.nested.TestPropertySourceTestClassScopedExtensionContextNestedTests.Config;
3130

3231
import static org.assertj.core.api.Assertions.assertThat;
3332
import static org.springframework.test.context.NestedTestConfiguration.EnclosingConfiguration.INHERIT;
@@ -42,7 +41,7 @@
4241
* @author Sam Brannen
4342
* @since 5.3
4443
*/
45-
@SpringJUnitConfig(Config.class)
44+
@SpringJUnitConfig
4645
@TestPropertySource(properties = "p1 = v1")
4746
@NestedTestConfiguration(OVERRIDE) // since INHERIT is now the global default
4847
class TestPropertySourceTestClassScopedExtensionContextNestedTests {

spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/WebAppConfigurationNestedTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.springframework.test.context.NestedTestConfiguration;
2525
import org.springframework.test.context.junit.jupiter.SpringExtension;
2626
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
27-
import org.springframework.test.context.junit.jupiter.nested.WebAppConfigurationNestedTests.Config;
2827
import org.springframework.test.context.junit.jupiter.web.SpringJUnitWebConfig;
2928
import org.springframework.test.context.web.WebAppConfiguration;
3029
import org.springframework.web.context.WebApplicationContext;
@@ -44,7 +43,7 @@
4443
* @see ConstructorInjectionTestMethodScopedExtensionContextNestedTests
4544
* @see org.springframework.test.context.junit4.nested.NestedTestsWithSpringRulesTests
4645
*/
47-
@SpringJUnitWebConfig(Config.class)
46+
@SpringJUnitWebConfig
4847
@NestedTestConfiguration(OVERRIDE) // since INHERIT is now the global default
4948
class WebAppConfigurationNestedTests {
5049

0 commit comments

Comments
 (0)