See gh-18281
This commit is contained in:
Johnny Lim
2019-09-19 13:12:44 +09:00
committed by Stephane Nicoll
parent 9f1243129c
commit b70be97cbf
6 changed files with 8 additions and 7 deletions

View File

@@ -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);
});
}

View File

@@ -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);
});
}

View File

@@ -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);
});
}