Skip to content

Commit

Permalink
Merge branch '2.6.x' into 2.7.x
Browse files Browse the repository at this point in the history
Closes gh-31806
  • Loading branch information
wilkinsona committed Jul 20, 2022
2 parents 10e19d5 + bcbe072 commit 84efc89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -184,8 +184,6 @@ public void resources(Function<ServerRequest, Mono<Resource>> lookupFunction) {

@Override
public void attributes(Map<String, Object> attributes) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Auto-generated method stub");
}

@Override
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -164,7 +164,7 @@ void reactiveWebMappings() {
contextMappings, "dispatcherHandlers");
assertThat(dispatcherHandlers).containsOnlyKeys("webHandler");
List<DispatcherHandlerMappingDescription> handlerMappings = dispatcherHandlers.get("webHandler");
assertThat(handlerMappings).hasSize(3);
assertThat(handlerMappings).hasSize(4);
});
}

Expand Down Expand Up @@ -211,6 +211,11 @@ void three() {

}

@Bean
RouterFunction<ServerResponse> routerFunctionWithAttributes() {
return route(GET("/four"), (request) -> ServerResponse.ok().build()).withAttribute("test", "test");
}

}

@Configuration(proxyBeanMethods = false)
Expand Down

0 comments on commit 84efc89

Please sign in to comment.