mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish ImportsContextCustomizerTests
Update the test classes to include an `@Import` annotation. Without this the tests would not fail even if the filter is missing.
This commit is contained in:
parent
db0287c51f
commit
75bf430eb1
@ -105,31 +105,37 @@ class ImportsContextCustomizerTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Metadata(d2 = "foo")
|
@Metadata(d2 = "foo")
|
||||||
|
@Import(TestImportSelector.class)
|
||||||
static class FirstKotlinAnnotatedTestClass {
|
static class FirstKotlinAnnotatedTestClass {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Metadata(d2 = "bar")
|
@Metadata(d2 = "bar")
|
||||||
|
@Import(TestImportSelector.class)
|
||||||
static class SecondKotlinAnnotatedTestClass {
|
static class SecondKotlinAnnotatedTestClass {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SpecMetadata(filename = "foo", line = 10)
|
@SpecMetadata(filename = "foo", line = 10)
|
||||||
|
@Import(TestImportSelector.class)
|
||||||
static class FirstSpockFrameworkAnnotatedTestClass {
|
static class FirstSpockFrameworkAnnotatedTestClass {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SpecMetadata(filename = "bar", line = 10)
|
@SpecMetadata(filename = "bar", line = 10)
|
||||||
|
@Import(TestImportSelector.class)
|
||||||
static class SecondSpockFrameworkAnnotatedTestClass {
|
static class SecondSpockFrameworkAnnotatedTestClass {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Stepwise
|
@Stepwise
|
||||||
|
@Import(TestImportSelector.class)
|
||||||
static class FirstSpockLangAnnotatedTestClass {
|
static class FirstSpockLangAnnotatedTestClass {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Issue("1234")
|
@Issue("1234")
|
||||||
|
@Import(TestImportSelector.class)
|
||||||
static class SecondSpockLangAnnotatedTestClass {
|
static class SecondSpockLangAnnotatedTestClass {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user