See gh-29140
pull/29177/head
Brian Clozel 3 years ago
parent acafdc1a62
commit 88ee4fab36

@ -53,6 +53,7 @@ import static org.mockito.Mockito.mock;
* *
* @author Brian Clozel * @author Brian Clozel
*/ */
@SuppressWarnings("unchecked")
class GraphQlMetricsInstrumentationTests { class GraphQlMetricsInstrumentationTests {
private final ExecutionInput input = ExecutionInput.newExecutionInput("{greeting}").build(); private final ExecutionInput input = ExecutionInput.newExecutionInput("{greeting}").build();

@ -39,11 +39,11 @@ public final class GraphQlTestDataFetchers {
} }
public static DataFetcher getBookByIdDataFetcher() { public static DataFetcher<Book> getBookByIdDataFetcher() {
return (environment) -> getBookById(environment.getArgument("id")); return (environment) -> getBookById(environment.getArgument("id"));
} }
public static DataFetcher getBooksOnSaleDataFetcher() { public static DataFetcher<Flux<Book>> getBooksOnSaleDataFetcher() {
return (environment) -> getBooksOnSale(environment.getArgument("minPages")); return (environment) -> getBooksOnSale(environment.getArgument("minPages"));
} }

@ -155,6 +155,7 @@ class GraphQlWebMvcSecurityAutoConfigurationTests {
@Configuration(proxyBeanMethods = false) @Configuration(proxyBeanMethods = false)
@EnableWebSecurity @EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true) @EnableGlobalMethodSecurity(prePostEnabled = true)
@SuppressWarnings("deprecation")
static class SecurityConfig { static class SecurityConfig {
@Bean @Bean

@ -42,6 +42,7 @@ public class SecurityConfig {
} }
@Bean @Bean
@SuppressWarnings("deprecation")
public static InMemoryUserDetailsManager userDetailsService() { public static InMemoryUserDetailsManager userDetailsService() {
User.UserBuilder userBuilder = User.withDefaultPasswordEncoder(); User.UserBuilder userBuilder = User.withDefaultPasswordEncoder();
UserDetails rob = userBuilder.username("rob").password("rob").roles("USER").build(); UserDetails rob = userBuilder.username("rob").password("rob").roles("USER").build();

Loading…
Cancel
Save