Polish
See gh-18281
This commit is contained in:
committed by
Stephane Nicoll
parent
9f1243129c
commit
b70be97cbf
@@ -275,7 +275,7 @@ class FlywayAutoConfigurationTests {
|
||||
.withUserConfiguration(EmbeddedDataSourceConfiguration.class, FlywayJavaMigrationsConfiguration.class)
|
||||
.run((context) -> {
|
||||
Flyway flyway = context.getBean(Flyway.class);
|
||||
assertThat(flyway.getConfiguration().getJavaMigrations().length).isEqualTo(2);
|
||||
assertThat(flyway.getConfiguration().getJavaMigrations()).hasSize(2);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -342,7 +342,7 @@ class ReactiveOAuth2ResourceServerAutoConfigurationTests {
|
||||
.getField(reactiveJwtDecoder, "jwtValidator");
|
||||
Collection<OAuth2TokenValidator<Jwt>> tokenValidators = (Collection<OAuth2TokenValidator<Jwt>>) ReflectionTestUtils
|
||||
.getField(jwtValidator, "tokenValidators");
|
||||
assertThat(tokenValidators.stream()).hasAtLeastOneElementOfType(JwtIssuerValidator.class);
|
||||
assertThat(tokenValidators).hasAtLeastOneElementOfType(JwtIssuerValidator.class);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -345,7 +345,7 @@ class OAuth2ResourceServerAutoConfigurationTests {
|
||||
.getField(jwtDecoder, "jwtValidator");
|
||||
Collection<OAuth2TokenValidator<Jwt>> tokenValidators = (Collection<OAuth2TokenValidator<Jwt>>) ReflectionTestUtils
|
||||
.getField(jwtValidator, "tokenValidators");
|
||||
assertThat(tokenValidators.stream()).hasAtLeastOneElementOfType(JwtIssuerValidator.class);
|
||||
assertThat(tokenValidators).hasAtLeastOneElementOfType(JwtIssuerValidator.class);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user