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
*/
@SuppressWarnings("unchecked")
class GraphQlMetricsInstrumentationTests {
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"));
}
public static DataFetcher getBooksOnSaleDataFetcher() {
public static DataFetcher<Flux<Book>> getBooksOnSaleDataFetcher() {
return (environment) -> getBooksOnSale(environment.getArgument("minPages"));
}

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

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

Loading…
Cancel
Save