Fix checkstyle issues and test failures
See gh-27955 See gh-28442
This commit is contained in:
parent
83063a7269
commit
2961426d8a
|
@ -111,7 +111,7 @@ jar {
|
|||
test {
|
||||
// Make sure the classes dir is used on the test classpath (required by ResourceTests).
|
||||
// When test fixtures are involved, the JAR is used by default.
|
||||
classpath = sourceSets.main.output.classesDirs + classpath - files(jar.archiveFile)
|
||||
classpath = sourceSets.main.output.classesDirs + files(sourceSets.main.output.resourcesDir) + classpath - files(jar.archiveFile)
|
||||
|
||||
// Ensure that BlockHound tests run on JDK 13+. For details, see:
|
||||
// https://github.com/reactor/BlockHound/issues/33
|
||||
|
|
|
@ -95,4 +95,4 @@ class SpringFactoriesLoaderRuntimeHintsRegistrar implements RuntimeHintsRegistra
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,14 +48,14 @@ class CoreAnnotationsRuntimeHintsRegistrarTests {
|
|||
@Test
|
||||
void aliasForHasHints() {
|
||||
assertThat(this.hints.reflection().getTypeHint(TypeReference.of(AliasFor.class)))
|
||||
.satisfies((hint) -> assertThat(hint.getMemberCategories())
|
||||
.satisfies(hint -> assertThat(hint.getMemberCategories())
|
||||
.containsExactly(MemberCategory.INVOKE_DECLARED_METHODS));
|
||||
}
|
||||
|
||||
@Test
|
||||
void orderAnnotationHasHints() {
|
||||
assertThat(this.hints.reflection().getTypeHint(TypeReference.of(Order.class)))
|
||||
.satisfies((hint) -> assertThat(hint.getMemberCategories())
|
||||
.satisfies(hint -> assertThat(hint.getMemberCategories())
|
||||
.containsExactly(MemberCategory.INVOKE_DECLARED_METHODS));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue