Skip to content

Commit 75bf430

Browse files
committed
Polish ImportsContextCustomizerTests
Update the test classes to include an `@Import` annotation. Without this the tests would not fail even if the filter is missing.
1 parent db0287c commit 75bf430

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/ImportsContextCustomizerTests.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,31 +105,37 @@ static class SecondDeterminableImportSelectorAnnotatedClass {
105105
}
106106

107107
@Metadata(d2 = "foo")
108+
@Import(TestImportSelector.class)
108109
static class FirstKotlinAnnotatedTestClass {
109110

110111
}
111112

112113
@Metadata(d2 = "bar")
114+
@Import(TestImportSelector.class)
113115
static class SecondKotlinAnnotatedTestClass {
114116

115117
}
116118

117119
@SpecMetadata(filename = "foo", line = 10)
120+
@Import(TestImportSelector.class)
118121
static class FirstSpockFrameworkAnnotatedTestClass {
119122

120123
}
121124

122125
@SpecMetadata(filename = "bar", line = 10)
126+
@Import(TestImportSelector.class)
123127
static class SecondSpockFrameworkAnnotatedTestClass {
124128

125129
}
126130

127131
@Stepwise
132+
@Import(TestImportSelector.class)
128133
static class FirstSpockLangAnnotatedTestClass {
129134

130135
}
131136

132137
@Issue("1234")
138+
@Import(TestImportSelector.class)
133139
static class SecondSpockLangAnnotatedTestClass {
134140

135141
}

0 commit comments

Comments
 (0)