language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/handler/CorsUrlHandlerMappingTests.java | @@ -136,8 +136,7 @@ private ServerWebExchange createExchange(HttpMethod method, String path, String
return MockServerWebExchange.from(MockServerHttpRequest
.method(method, "http://localhost" + path)
.header("Origin", origin)
- .header(HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD, "GET")
- .build());
+ ... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/resource/CachingResourceResolverTests.java | @@ -71,7 +71,7 @@ public void setup() {
public void resolveResourceInternal() {
String file = "bar.css";
Resource expected = new ClassPathResource("test/" + file, getClass());
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("").build());
+ MockServerWebExchange exchange... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/resource/CssLinkResourceTransformerTests.java | @@ -76,8 +76,7 @@ public void setup() {
@Test
public void transform() throws Exception {
- MockServerHttpRequest request = MockServerHttpRequest.get("/static/main.css").build();
- MockServerWebExchange exchange = MockServerWebExchange.from(request);
+ MockServerWebExchange exchange = MockServerWebExchange.from... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/resource/GzipResourceResolverTests.java | @@ -105,7 +105,7 @@ public void setup() {
@Test
public void resolveGzippedFile() throws IOException {
MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("")
- .header("Accept-Encoding", "gzip").build());
+ .header("Accept-Encoding", "gzip"));
String file = "js/foo.js... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceTransformerSupportTests.java | @@ -71,8 +71,7 @@ private ResourceUrlProvider createResourceUrlProvider(List<ResourceResolver> res
@Test
public void resolveUrlPath() throws Exception {
- MockServerHttpRequest request = MockServerHttpRequest.get("/resources/main.css").build();
- MockServerWebExchange exchange = MockServerWebExchange.from(reque... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceUrlProviderTests.java | @@ -72,15 +72,15 @@ public void setup() throws Exception {
@Test
public void getStaticResourceUrl() {
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").build());
+ MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/"));
String ur... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceWebHandlerTests.java | @@ -93,7 +93,7 @@ public void setup() throws Exception {
@Test
public void getResource() throws Exception {
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("").build());
+ MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get(""));
setPa... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/resource/WebJarsResourceResolverTests.java | @@ -64,7 +64,7 @@ public void setup() {
this.locations = singletonList(new ClassPathResource("/META-INF/resources/webjars"));
this.resolver = new WebJarsResourceResolver();
this.chain = mock(ResourceResolverChain.class);
- this.exchange = MockServerWebExchange.from(MockServerHttpRequest.get("").build());
+ t... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/HandlerResultHandlerTests.java | @@ -54,15 +54,15 @@ public class HandlerResultHandlerTests {
public void usesContentTypeResolver() throws Exception {
TestResultHandler resultHandler = new TestResultHandler(new FixedContentTypeResolver(IMAGE_GIF));
List<MediaType> mediaTypes = Arrays.asList(IMAGE_JPEG, IMAGE_GIF, IMAGE_PNG);
- MockServerWebEx... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/CompositeRequestConditionTests.java | @@ -98,20 +98,20 @@ public void match() {
@Test
public void noMatch() {
CompositeRequestCondition cond = new CompositeRequestCondition(this.param1);
- assertNull(cond.getMatchingCondition(MockServerWebExchange.from(MockServerHttpRequest.get("/").build())));
+ assertNull(cond.getMatchingCondition(MockServerWebE... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/ConsumesRequestConditionTests.java | @@ -101,7 +101,7 @@ public void consumesParseErrorWithNegation() throws Exception {
@Test
public void compareToSingle() throws Exception {
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").build());
+ MockServerWebExchange exchange = MockServerWebExchange.from(MockServ... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/HeadersRequestConditionTests.java | @@ -47,71 +47,71 @@ public void headerEquals() {
@Test
public void headerPresent() throws Exception {
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").header("Accept", "").build());
+ MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.ge... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/ParamsRequestConditionTests.java | @@ -48,42 +48,42 @@ public void paramEquals() {
@Test
public void paramPresent() throws Exception {
ParamsRequestCondition condition = new ParamsRequestCondition("foo");
- assertNotNull(condition.getMatchingCondition(MockServerWebExchange.from(get("/path?foo=").build())));
+ assertNotNull(condition.getMatching... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/PatternsRequestConditionTests.java | @@ -80,7 +80,7 @@ public void combineMultiplePatterns() {
@Test
public void matchDirectPath() throws Exception {
PatternsRequestCondition condition = createPatternsCondition("/foo");
- MockServerWebExchange exchange = MockServerWebExchange.from(get("/foo").build());
+ MockServerWebExchange exchange = MockServe... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/ProducesRequestConditionTests.java | @@ -41,15 +41,15 @@ public class ProducesRequestConditionTests {
@Test
public void match() throws Exception {
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").header("Accept", "text/plain").build());
+ MockServerWebExchange exchange = MockServerWebExchange.from(MockSe... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/RequestConditionHolderTests.java | @@ -34,7 +34,7 @@
*/
public class RequestConditionHolderTests {
- private final MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").build());
+ private final MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/"));
@Test | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/RequestMappingInfoTests.java | @@ -87,7 +87,7 @@ public void prependPatternWithSlash() {
@Test
public void matchPatternsCondition() {
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/foo").build());
+ MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/foo"));
... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/RequestMethodsRequestConditionTests.java | @@ -139,7 +139,7 @@ private void testNoMatch(RequestMethodsRequestCondition condition, RequestMethod
}
private ServerWebExchange getExchange(String method) throws URISyntaxException {
- return MockServerWebExchange.from(MockServerHttpRequest.method(HttpMethod.valueOf(method), "/").build());
+ return MockServerW... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/HandlerMethodMappingTests.java | @@ -75,7 +75,7 @@ public void registerDuplicates() {
public void directMatch() throws Exception {
String key = "foo";
this.mapping.registerMapping(key, this.handler, this.method1);
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get(key).build());
+ MockServerWebExchange ex... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/InvocableHandlerMethodTests.java | @@ -46,7 +46,7 @@
public class InvocableHandlerMethodTests {
private final MockServerWebExchange exchange =
- MockServerWebExchange.from(MockServerHttpRequest.get("http://localhost:8080/path").build());
+ MockServerWebExchange.from(MockServerHttpRequest.get("http://localhost:8080/path"));
@Test | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMappingTests.java | @@ -98,7 +98,7 @@ public void setup() throws Exception {
@Test
public void getHandlerDirectMatch() throws Exception {
Method expected = on(TestController.class).annot(getMapping("/foo").params()).resolveMethod();
- ServerWebExchange exchange = MockServerWebExchange.from(get("/foo").build());
+ ServerWebExchang... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ControllerAdviceTests.java | @@ -54,7 +54,7 @@
public class ControllerAdviceTests {
private final MockServerWebExchange exchange =
- MockServerWebExchange.from(MockServerHttpRequest.get("/").build());
+ MockServerWebExchange.from(MockServerHttpRequest.get("/"));
@Test | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/CookieValueMethodArgumentResolverTests.java | @@ -97,7 +97,7 @@ public void doesNotSupportParameter() {
@Test
public void resolveCookieArgument() {
HttpCookie expected = new HttpCookie("name", "foo");
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").cookie(expected).build());
+ MockServerWebExchange exchange = M... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ErrorsArgumentResolverTests.java | @@ -53,7 +53,7 @@ public class ErrorsArgumentResolverTests {
private BindingResult bindingResult;
- private MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.post("/path").build());
+ private MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.post("/p... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ExpressionValueMethodArgumentResolverTests.java | @@ -45,7 +45,7 @@ public class ExpressionValueMethodArgumentResolverTests {
private ExpressionValueMethodArgumentResolver resolver;
- private final MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").build());
+ private final MockServerWebExchange exchange = MockServerWebExc... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/HttpEntityArgumentResolverTests.java | @@ -328,7 +328,7 @@ private <T> T resolveValue(ServerWebExchange exchange, ResolvableType type) {
@SuppressWarnings("unchecked")
private <T> HttpEntity<T> resolveValueWithEmptyBody(ResolvableType type) {
- ServerWebExchange exchange = MockServerWebExchange.from(post("/path").build());
+ ServerWebExchange exchan... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/InitBinderBindingContextTests.java | @@ -55,7 +55,7 @@ public class InitBinderBindingContextTests {
@Test
public void createBinder() throws Exception {
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").build());
+ MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/"));... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageWriterResultHandlerTests.java | @@ -69,8 +69,7 @@ public class MessageWriterResultHandlerTests {
private final AbstractMessageWriterResultHandler resultHandler = initResultHandler();
- private final MockServerWebExchange exchange = MockServerWebExchange.from(
- MockServerHttpRequest.get("/path").build());
+ private final MockServerWebExchange... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ModelInitializerTests.java | @@ -67,8 +67,7 @@ public class ModelInitializerTests {
private ModelInitializer modelInitializer;
- private final ServerWebExchange exchange = MockServerWebExchange.from(
- MockServerHttpRequest.get("/path").build());
+ private final ServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/PathVariableMapMethodArgumentResolverTests.java | @@ -48,8 +48,7 @@ public class PathVariableMapMethodArgumentResolverTests {
private PathVariableMapMethodArgumentResolver resolver;
- private final MockServerWebExchange exchange= MockServerWebExchange.from(
- MockServerHttpRequest.get("/").build());
+ private final MockServerWebExchange exchange= MockServerWeb... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/PathVariableMethodArgumentResolverTests.java | @@ -54,8 +54,7 @@ public class PathVariableMethodArgumentResolverTests {
private PathVariableMethodArgumentResolver resolver;
- private final MockServerWebExchange exchange= MockServerWebExchange.from(
- MockServerHttpRequest.get("/").build());
+ private final MockServerWebExchange exchange= MockServerWebExchan... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/PrincipalArgumentResolverTests.java | @@ -57,7 +57,7 @@ public void resolverArgument() throws Exception {
BindingContext context = new BindingContext();
Principal user = () -> "Joe";
- ServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").build())
+ ServerWebExchange exchange = MockServerWebExchange.from(MockServe... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestAttributeMethodArgumentResolverTests.java | @@ -56,8 +56,7 @@ public class RequestAttributeMethodArgumentResolverTests {
private RequestAttributeMethodArgumentResolver resolver;
- private final MockServerWebExchange exchange = MockServerWebExchange.from(
- MockServerHttpRequest.get("/").build());
+ private final MockServerWebExchange exchange = MockServe... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java | @@ -238,7 +238,7 @@ private <T> T resolveValue(MethodParameter param, String body) {
@SuppressWarnings("unchecked")
private <T> T resolveValueWithEmptyBody(MethodParameter param) {
- ServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.post("/path").build());
+ ServerWebExchange exchang... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestHeaderMethodArgumentResolverTests.java | @@ -112,7 +112,7 @@ public void supportsParameter() {
@Test
public void resolveStringArgument() throws Exception {
String expected = "foo";
- ServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").header("name", expected).build());
+ ServerWebExchange exchange = MockServerWebExc... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestParamMapMethodArgumentResolverTests.java | @@ -80,17 +80,15 @@ public void supportsParameter() {
@Test
public void resolveMapArgumentWithQueryString() throws Exception {
MethodParameter param = this.testMethod.annot(requestParam().name("")).arg(Map.class);
- MockServerHttpRequest request = MockServerHttpRequest.get("/path?foo=bar").build();
- Object re... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestParamMethodArgumentResolverTests.java | @@ -135,7 +135,7 @@ public void doesNotSupportReactiveWrapper() {
@Test
public void resolveWithQueryString() throws Exception {
MethodParameter param = this.testMethod.annot(requestParam().notRequired("bar")).arg(String.class);
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java | @@ -159,7 +159,7 @@ public void responseEntityStatusCode() throws Exception {
ResponseEntity<Void> value = ResponseEntity.noContent().build();
MethodParameter returnType = on(TestController.class).resolveReturnType(entity(Void.class));
HandlerResult result = handlerResult(value, returnType);
- MockServerWebEx... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ServerWebExchangeArgumentResolverTests.java | @@ -52,8 +52,7 @@ public class ServerWebExchangeArgumentResolverTests {
private final ServerWebExchangeArgumentResolver resolver =
new ServerWebExchangeArgumentResolver(new ReactiveAdapterRegistry());
- private final MockServerWebExchange exchange = MockServerWebExchange.from(
- MockServerHttpRequest.get("/pa... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/AbstractViewTests.java | @@ -49,7 +49,7 @@ public class AbstractViewTests {
@Before
public void setup() {
- this.exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/").build());
+ this.exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/"));
}
@SuppressWarnings("unchecked") | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/HttpMessageWriterViewTests.java | @@ -53,8 +53,7 @@ public class HttpMessageWriterViewTests {
private final ModelMap model = new ExtendedModelMap();
- private final MockServerWebExchange exchange = MockServerWebExchange.from(
- MockServerHttpRequest.get("/").build());
+ private final MockServerWebExchange exchange = MockServerWebExchange.from(M... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/RedirectViewTests.java | @@ -47,8 +47,7 @@ public class RedirectViewTests {
@Before
public void setup() {
- this.exchange = MockServerWebExchange.from(
- MockServerHttpRequest.get("/context/path").contextPath("/context").build());
+ this.exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/context/path").contextPath("/c... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/RequestContextTests.java | @@ -35,7 +35,7 @@
public class RequestContextTests {
private final MockServerWebExchange exchange =
- MockServerWebExchange.from(MockServerHttpRequest.get("/foo/path").contextPath("/foo").build());
+ MockServerWebExchange.from(MockServerHttpRequest.get("/foo/path").contextPath("/foo"));
private GenericAppl... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandlerTests.java | @@ -216,15 +216,15 @@ private void testDefaultViewName(Object returnValue, MethodParameter returnType)
HandlerResult result = new HandlerResult(new Object(), returnValue, returnType, this.bindingContext);
ViewResolutionResultHandler handler = resultHandler(new TestViewResolver("account"));
- MockServerWebExcha... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerViewTests.java | @@ -48,7 +48,7 @@ public class FreeMarkerViewTests {
private final MockServerWebExchange exchange =
- MockServerWebExchange.from(MockServerHttpRequest.get("/path").build());
+ MockServerWebExchange.from(MockServerHttpRequest.get("/path"));
private GenericApplicationContext context;
| true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/script/JRubyScriptTemplateTests.java | @@ -52,7 +52,7 @@ public void renderTemplate() throws Exception {
private MockServerHttpResponse renderViewWithModel(String viewUrl, Map<String, Object> model) throws Exception {
ScriptTemplateView view = createViewWithUrl(viewUrl);
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpReq... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/script/JythonScriptTemplateTests.java | @@ -50,7 +50,7 @@ public void renderTemplate() throws Exception {
private MockServerHttpResponse renderViewWithModel(String viewUrl, Map<String, Object> model) throws Exception {
ScriptTemplateView view = createViewWithUrl(viewUrl);
- MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpReq... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/script/NashornScriptTemplateTests.java | @@ -59,7 +59,7 @@ public void renderTemplateWithUrl() throws Exception {
private MockServerHttpResponse renderViewWithModel(String viewUrl, Map<String, Object> model, Class<?> configuration) throws Exception {
ScriptTemplateView view = createViewWithUrl(viewUrl, configuration);
- MockServerWebExchange exchange ... | true |
Other | spring-projects | spring-framework | 94c4a7f94174243899d0f2bf94d6121f68d9c388.json | Shortcut factory method in MockServerWebExchange
MockServerWebExchange now has a second factory method that accepts a
MockServerHttpRequest.BaseBuilder.
Issue: SPR-16079 | spring-webflux/src/test/kotlin/org/springframework/web/reactive/result/method/annotation/RequestParamMethodArgumentResolverKotlinTests.kt | @@ -65,56 +65,56 @@ class RequestParamMethodArgumentResolverKotlinTests {
@Test
fun resolveNullableRequiredWithParameter() {
- var exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/path?name=123").build())
+ var exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/path?name=123"))
... | true |
Other | spring-projects | spring-framework | 2962f085e508b066ad33c7285178ba2d2b7095bc.json | Relax type check in FormHttpMessage(Reader|Writer)
Issue: SPR-16055 | spring-web/src/main/java/org/springframework/http/codec/FormHttpMessageReader.java | @@ -77,8 +77,9 @@ public Charset getDefaultCharset() {
@Override
public boolean canRead(ResolvableType elementType, @Nullable MediaType mediaType) {
- return (MULTIVALUE_TYPE.isAssignableFrom(elementType) &&
- (mediaType == null || MediaType.APPLICATION_FORM_URLENCODED.isCompatibleWith(mediaType)));
+ return... | true |
Other | spring-projects | spring-framework | 2962f085e508b066ad33c7285178ba2d2b7095bc.json | Relax type check in FormHttpMessage(Reader|Writer)
Issue: SPR-16055 | spring-web/src/main/java/org/springframework/http/codec/FormHttpMessageWriter.java | @@ -77,7 +77,8 @@ public Charset getDefaultCharset() {
@Override
public boolean canWrite(ResolvableType elementType, @Nullable MediaType mediaType) {
- return MULTIVALUE_TYPE.isAssignableFrom(elementType) &&
+ return (MULTIVALUE_TYPE.isAssignableFrom(elementType) ||
+ (elementType.hasUnresolvableGenerics() &... | true |
Other | spring-projects | spring-framework | 2962f085e508b066ad33c7285178ba2d2b7095bc.json | Relax type check in FormHttpMessage(Reader|Writer)
Issue: SPR-16055 | spring-web/src/test/java/org/springframework/http/codec/FormHttpMessageReaderTests.java | @@ -27,6 +27,7 @@
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.mock.http.server.reactive.test.MockServerHttpRequest;
+import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
/**
@@ -42,6 +43,10 @@ pub... | true |
Other | spring-projects | spring-framework | 2962f085e508b066ad33c7285178ba2d2b7095bc.json | Relax type check in FormHttpMessage(Reader|Writer)
Issue: SPR-16055 | spring-web/src/test/java/org/springframework/http/codec/FormHttpMessageWriterTests.java | @@ -44,6 +44,10 @@ public void canWrite() {
ResolvableType.forClassWithGenerics(MultiValueMap.class, String.class, String.class),
MediaType.APPLICATION_FORM_URLENCODED));
+ assertTrue(this.writer.canWrite(
+ ResolvableType.forInstance(new LinkedMultiValueMap<String, String>()),
+ MediaType.APPLICATIO... | true |
Other | spring-projects | spring-framework | 82194f4ee0adeffeb3ae0078357d7da6d1cbc85c.json | Set SameSite default to Lax
Issue: SPR-16418 | spring-web/src/main/java/org/springframework/web/server/session/CookieWebSessionIdResolver.java | @@ -125,7 +125,7 @@ private ResponseCookie initSessionCookie(
.maxAge(maxAge)
.httpOnly(true)
.secure("https".equalsIgnoreCase(exchange.getRequest().getURI().getScheme()))
- .sameSite("Strict");
+ .sameSite("Lax");
if (this.cookieInitializer != null) {
this.cookieInitializer.accept(cookieB... | true |
Other | spring-projects | spring-framework | 82194f4ee0adeffeb3ae0078357d7da6d1cbc85c.json | Set SameSite default to Lax
Issue: SPR-16418 | spring-web/src/test/java/org/springframework/web/server/session/CookieWebSessionIdResolverTests.java | @@ -44,13 +44,13 @@ public void setSessionId() {
assertEquals(1, cookies.size());
ResponseCookie cookie = cookies.getFirst(this.resolver.getCookieName());
assertNotNull(cookie);
- assertEquals("SESSION=123; Path=/; Secure; HttpOnly; SameSite=Strict", cookie.toString());
+ assertEquals("SESSION=123; Path=/; S... | true |
Other | spring-projects | spring-framework | 2734f01067fb231ee3fd3d6dd100e0ae6ed6ed0b.json | Provide XML assertions in WebTestClient
Adds XML-based assertions in
org.springframework.test.web.reactive.server.WebTestClient.BodyContentSpec
for asserting against the XML body as well as xPath,
similar to those assertions offered when using
MockMvcResultMatchers.xpath().
Issue: SPR-16741 | spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java | @@ -27,6 +27,7 @@
import java.util.concurrent.atomic.AtomicLong;
import java.util.function.Consumer;
import java.util.function.Function;
+import javax.xml.xpath.XPathExpressionException;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
@@ -40,6 +41,7 @@
import org.springframework.http.c... | true |
Other | spring-projects | spring-framework | 2734f01067fb231ee3fd3d6dd100e0ae6ed6ed0b.json | Provide XML assertions in WebTestClient
Adds XML-based assertions in
org.springframework.test.web.reactive.server.WebTestClient.BodyContentSpec
for asserting against the XML body as well as xPath,
similar to those assertions offered when using
MockMvcResultMatchers.xpath().
Issue: SPR-16741 | spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java | @@ -819,6 +819,14 @@ interface BodyContentSpec {
*/
BodyContentSpec json(String expectedJson);
+ /**
+ * Parse the expected and actual response content as XML and perform a
+ * comparison verifying the same structure.
+ * @param expectedXml the expected JSON content.
+ * @since 5.1
+ */
+ BodyConte... | true |
Other | spring-projects | spring-framework | 2734f01067fb231ee3fd3d6dd100e0ae6ed6ed0b.json | Provide XML assertions in WebTestClient
Adds XML-based assertions in
org.springframework.test.web.reactive.server.WebTestClient.BodyContentSpec
for asserting against the XML body as well as xPath,
similar to those assertions offered when using
MockMvcResultMatchers.xpath().
Issue: SPR-16741 | spring-test/src/main/java/org/springframework/test/web/reactive/server/XpathAssertions.java | @@ -0,0 +1,159 @@
+/*
+ * Copyright 2002-2018 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 2734f01067fb231ee3fd3d6dd100e0ae6ed6ed0b.json | Provide XML assertions in WebTestClient
Adds XML-based assertions in
org.springframework.test.web.reactive.server.WebTestClient.BodyContentSpec
for asserting against the XML body as well as xPath,
similar to those assertions offered when using
MockMvcResultMatchers.xpath().
Issue: SPR-16741 | spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/XmlContentTests.java | @@ -0,0 +1,228 @@
+/*
+ * Copyright 2002-2018 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 9498da591094120c40b966a4b91d59f7d39936d0.json | Clarify behavior of WebSession#save()
+ minor update to the InMemoryWebSession to match the defined behavior.
Issue: SPR-17051 | spring-web/src/main/java/org/springframework/web/server/WebSession.java | @@ -116,13 +116,19 @@ default <T> T getAttributeOrDefault(String name, T defaultValue) {
Mono<Void> invalidate();
/**
- * Save the session persisting attributes (e.g. if stored remotely) and also
- * sending the session id to the client if the session is new.
- * <p>Note that a session must be started explicit... | true |
Other | spring-projects | spring-framework | 9498da591094120c40b966a4b91d59f7d39936d0.json | Clarify behavior of WebSession#save()
+ minor update to the InMemoryWebSession to match the defined behavior.
Issue: SPR-17051 | spring-web/src/main/java/org/springframework/web/server/session/InMemoryWebSessionStore.java | @@ -240,17 +240,35 @@ public Mono<Void> invalidate() {
@Override
public Mono<Void> save() {
+
+ checkMaxSessionsLimit();
+
+ // Implicitly started session..
+ if (!getAttributes().isEmpty()) {
+ this.state.compareAndSet(State.NEW, State.STARTED);
+ }
+
+ if (isStarted()) {
+ // Save
+ InMemor... | true |
Other | spring-projects | spring-framework | 9498da591094120c40b966a4b91d59f7d39936d0.json | Clarify behavior of WebSession#save()
+ minor update to the InMemoryWebSession to match the defined behavior.
Issue: SPR-17051 | spring-web/src/test/java/org/springframework/web/server/session/InMemoryWebSessionStoreTests.java | @@ -83,6 +83,7 @@ public void lastAccessTimeIsUpdatedOnRetrieve() {
assertNotNull(session1);
String id = session1.getId();
Instant time1 = session1.getLastAccessTime();
+ session1.start();
session1.save().block();
// Fast-forward a few seconds
@@ -95,6 +96,34 @@ public void lastAccessTimeIsUpdatedOnRe... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-core/src/main/java/org/springframework/util/log/CompositeLog.java | @@ -13,36 +13,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.springframework.http;
+package org.springframework.util.log;
-import java.util.ArrayList;
-import java.util.Collections;
import java.util.List;
import java.util.function.P... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-core/src/main/java/org/springframework/util/log/LogUtils.java | @@ -0,0 +1,67 @@
+/*
+ * Copyright 2002-2018 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-core/src/main/java/org/springframework/util/log/package-info.java | @@ -0,0 +1,9 @@
+/**
+ * Useful helper classes for logging.
+ */
+@NonNullApi
+@NonNullFields
+package org.springframework.util.log;
+
+import org.springframework.lang.NonNullApi;
+import org.springframework.lang.NonNullFields; | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/HttpLogging.java | @@ -0,0 +1,69 @@
+/*
+ * Copyright 2002-2018 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/client/support/AsyncHttpAccessor.java | @@ -20,8 +20,8 @@
import java.net.URI;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import org.springframework.http.HttpLogging;
import org.springframework.http.HttpMethod;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
@@ -44,7 +44,7... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/client/support/HttpAccessor.java | @@ -20,8 +20,8 @@
import java.net.URI;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import org.springframework.http.HttpLogging;
import org.springframework.http.HttpMethod;
import org.springframework.http.client.ClientHttpRequest;
import org.springframework.http.client... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/codec/DecoderHttpMessageReader.java | @@ -27,7 +27,7 @@
import org.springframework.core.codec.AbstractDecoder;
import org.springframework.core.codec.Decoder;
import org.springframework.core.codec.Hints;
-import org.springframework.http.HttpLog;
+import org.springframework.http.HttpLogging;
import org.springframework.http.HttpMessage;
import org.spring... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java | @@ -30,7 +30,7 @@
import org.springframework.core.codec.Hints;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpLog;
+import org.springframework.http.HttpLogging;
import org.springframework.http.MediaType;
import org.springframe... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/codec/LoggingCodecSupport.java | @@ -16,9 +16,8 @@
package org.springframework.http.codec;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.springframework.http.HttpLog;
+import org.springframework.http.HttpLogging;
/**
* Base class for {@link org.springframework.core.codec.Encoder},
@@ -31,7... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/codec/ResourceHttpMessageWriter.java | @@ -23,7 +23,6 @@
import java.util.Optional;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -39,7 +38,7 @@
import org.springframework.core.io.buffer.DataBufferF... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/codec/json/Jackson2CodecSupport.java | @@ -29,13 +29,12 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.TypeFactory;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.springframework.core.GenericTypeResolver;
import org.springframework.core.MethodParamete... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/converter/AbstractHttpMessageConverter.java | @@ -25,11 +25,10 @@
import java.util.List;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpInputMessage;
-import org.springframework.http.HttpLog;
+import org.springframework.http.HttpLogging;
... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java | @@ -54,13 +54,12 @@
import com.fasterxml.jackson.dataformat.xml.XmlFactory;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.FatalBeanException;... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerReadPublisher.java | @@ -21,14 +21,14 @@
import java.util.concurrent.atomic.AtomicReference;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import reactor.core.publisher.Operat... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java | @@ -20,14 +20,14 @@
import java.util.concurrent.atomic.AtomicReference;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.reactivestreams.Processor;
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteProcessor.java | @@ -20,13 +20,13 @@
import java.util.concurrent.atomic.AtomicReference;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.reactivestreams.Processor;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import org.springframework.lang.Nu... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpRequest.java | @@ -23,11 +23,10 @@
import java.util.regex.Pattern;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.springframework.http.HttpCookie;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpLog;
+import org.springframework.http.HttpLoggin... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java | @@ -23,15 +23,14 @@
import java.util.stream.Collectors;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import org.springframework.core.io.buffer.DataBuffer;
imp... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/server/reactive/ReactorHttpHandlerAdapter.java | @@ -21,13 +21,12 @@
import io.netty.handler.codec.http.HttpResponseStatus;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import reactor.core.publisher.Mono;
import reactor.netty.http.server.HttpServerRequest;
import reactor.netty.http.server.HttpServerResponse;
import o... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/server/reactive/ServletHttpHandlerAdapter.java | @@ -35,13 +35,12 @@
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.sprin... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowHttpHandlerAdapter.java | @@ -21,13 +21,12 @@
import io.undertow.server.HttpServerExchange;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.spring... | true |
Other | spring-projects | spring-framework | 4d6f2df3cbdf956ec22e5dbefe18e79a290b4ea8.json | Add LogUtils and HttpLogging
SPR-17012 | spring-web/src/main/java/org/springframework/http/server/reactive/WriteResultPublisher.java | @@ -19,14 +19,14 @@
import java.util.concurrent.atomic.AtomicReference;
import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import reactor.core.publisher.Operat... | true |
Other | spring-projects | spring-framework | a87764f1fd218356690e05cf2aa964e92202eed6.json | Add support for Jetty Reactive Streams HTTP client
Leverage https://github.com/jetty-project/jetty-reactive-httpclient
to add support for Jetty in WebClient via JettyClientHttpConnector.
Implemented with buffer copy instead of optimized buffer wrapping
because the latter hangs since Callback#succeeded doesn't allow
r... | spring-web/spring-web.gradle | @@ -62,6 +62,7 @@ dependencies {
optional("org.codehaus.groovy:groovy-all:${groovyVersion}")
optional("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
optional("org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}")
+ optional("org.eclipse.jetty:jetty-reactive-httpclient:1.0.0")
testCompile("io.projectrea... | true |
Other | spring-projects | spring-framework | a87764f1fd218356690e05cf2aa964e92202eed6.json | Add support for Jetty Reactive Streams HTTP client
Leverage https://github.com/jetty-project/jetty-reactive-httpclient
to add support for Jetty in WebClient via JettyClientHttpConnector.
Implemented with buffer copy instead of optimized buffer wrapping
because the latter hangs since Callback#succeeded doesn't allow
r... | spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.java | @@ -0,0 +1,143 @@
+/*
+ * Copyright 2002-2018 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | a87764f1fd218356690e05cf2aa964e92202eed6.json | Add support for Jetty Reactive Streams HTTP client
Leverage https://github.com/jetty-project/jetty-reactive-httpclient
to add support for Jetty in WebClient via JettyClientHttpConnector.
Implemented with buffer copy instead of optimized buffer wrapping
because the latter hangs since Callback#succeeded doesn't allow
r... | spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpRequest.java | @@ -0,0 +1,148 @@
+/*
+ * Copyright 2002-2018 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | a87764f1fd218356690e05cf2aa964e92202eed6.json | Add support for Jetty Reactive Streams HTTP client
Leverage https://github.com/jetty-project/jetty-reactive-httpclient
to add support for Jetty in WebClient via JettyClientHttpConnector.
Implemented with buffer copy instead of optimized buffer wrapping
because the latter hangs since Callback#succeeded doesn't allow
r... | spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpResponse.java | @@ -0,0 +1,94 @@
+/*
+ * Copyright 2002-2018 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | a87764f1fd218356690e05cf2aa964e92202eed6.json | Add support for Jetty Reactive Streams HTTP client
Leverage https://github.com/jetty-project/jetty-reactive-httpclient
to add support for Jetty in WebClient via JettyClientHttpConnector.
Implemented with buffer copy instead of optimized buffer wrapping
because the latter hangs since Callback#succeeded doesn't allow
r... | spring-webflux/spring-webflux.gradle | @@ -45,6 +45,7 @@ dependencies {
testCompile("io.projectreactor:reactor-test")
testCompile("org.apache.tomcat:tomcat-util:${tomcatVersion}")
testCompile("org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}")
+ testCompile("org.eclipse.jetty:jetty-reactive-httpclient:1.0.0")
testCompile("org.eclipse.jetty... | true |
Other | spring-projects | spring-framework | a87764f1fd218356690e05cf2aa964e92202eed6.json | Add support for Jetty Reactive Streams HTTP client
Leverage https://github.com/jetty-project/jetty-reactive-httpclient
to add support for Jetty in WebClient via JettyClientHttpConnector.
Implemented with buffer copy instead of optimized buffer wrapping
because the latter hangs since Callback#succeeded doesn't allow
r... | spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java | @@ -32,6 +32,8 @@
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
@@ -46,6 +48,9 @@
import org.springframewo... | true |
Other | spring-projects | spring-framework | a87764f1fd218356690e05cf2aa964e92202eed6.json | Add support for Jetty Reactive Streams HTTP client
Leverage https://github.com/jetty-project/jetty-reactive-httpclient
to add support for Jetty in WebClient via JettyClientHttpConnector.
Implemented with buffer copy instead of optimized buffer wrapping
because the latter hangs since Callback#succeeded doesn't allow
r... | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/SseIntegrationTests.java | @@ -16,12 +16,14 @@
package org.springframework.web.reactive.result.method.annotation;
+import java.io.File;
import java.time.Duration;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
+import org.junit.runners.Parameterized;
import reactor.core.publisher.Fl... | true |
Other | spring-projects | spring-framework | a87764f1fd218356690e05cf2aa964e92202eed6.json | Add support for Jetty Reactive Streams HTTP client
Leverage https://github.com/jetty-project/jetty-reactive-httpclient
to add support for Jetty in WebClient via JettyClientHttpConnector.
Implemented with buffer copy instead of optimized buffer wrapping
because the latter hangs since Callback#succeeded doesn't allow
r... | src/docs/asciidoc/web/webflux-webclient.adoc | @@ -12,7 +12,10 @@ server <<web-reactive.adoc#webflux-fn,functional web framework>>.
The API exposes Reactor `Flux` and `Mono` types, also see
<<web-reactive.adoc#webflux-reactive-libraries>>. By default it uses
it uses https://github.com/reactor/reactor-netty[Reactor Netty] as the HTTP client
-library but others ca... | true |
Other | spring-projects | spring-framework | fb898e17272c13ef01f68125c3bba35f55f3fb7a.json | Remove inconsistent spaces | spring-aop/src/main/java/org/springframework/aop/framework/adapter/MethodBeforeAdviceInterceptor.java | @@ -48,7 +48,7 @@ public MethodBeforeAdviceInterceptor(MethodBeforeAdvice advice) {
@Override
public Object invoke(MethodInvocation mi) throws Throwable {
- this.advice.before(mi.getMethod(), mi.getArguments(), mi.getThis() );
+ this.advice.before(mi.getMethod(), mi.getArguments(), mi.getThis());
return mi.p... | true |
Other | spring-projects | spring-framework | fb898e17272c13ef01f68125c3bba35f55f3fb7a.json | Remove inconsistent spaces | spring-aop/src/test/java/org/springframework/aop/target/HotSwappableTargetSourceTests.java | @@ -70,13 +70,13 @@ public void tearDown() {
@Test
public void testBasicFunctionality() {
SideEffectBean proxied = (SideEffectBean) beanFactory.getBean("swappable");
- assertEquals(INITIAL_COUNT, proxied.getCount() );
+ assertEquals(INITIAL_COUNT, proxied.getCount());
proxied.doWork();
- assertEquals(INITI... | true |
Other | spring-projects | spring-framework | fb898e17272c13ef01f68125c3bba35f55f3fb7a.json | Remove inconsistent spaces | spring-aop/src/test/java/org/springframework/aop/target/PrototypeTargetSourceTests.java | @@ -56,14 +56,14 @@ public void setUp() throws Exception {
@Test
public void testPrototypeAndSingletonBehaveDifferently() {
SideEffectBean singleton = (SideEffectBean) beanFactory.getBean("singleton");
- assertEquals(INITIAL_COUNT, singleton.getCount() );
+ assertEquals(INITIAL_COUNT, singleton.getCount());
... | true |
Other | spring-projects | spring-framework | fb898e17272c13ef01f68125c3bba35f55f3fb7a.json | Remove inconsistent spaces | spring-aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests.java | @@ -62,9 +62,9 @@ protected void tearDown() {
@Test
public void testUseDifferentManagedInstancesInSameThread() {
SideEffectBean apartment = (SideEffectBean) beanFactory.getBean("apartment");
- assertEquals(INITIAL_COUNT, apartment.getCount() );
+ assertEquals(INITIAL_COUNT, apartment.getCount());
apartment.... | true |
Other | spring-projects | spring-framework | fb898e17272c13ef01f68125c3bba35f55f3fb7a.json | Remove inconsistent spaces | spring-context/src/test/java/org/springframework/aop/framework/ProxyFactoryBeanTests.java | @@ -260,22 +260,22 @@ private Object testPrototypeInstancesAreIndependent(String beanName) {
// Check it works without AOP
SideEffectBean raw = (SideEffectBean) bf.getBean("prototypeTarget");
- assertEquals(INITIAL_COUNT, raw.getCount() );
+ assertEquals(INITIAL_COUNT, raw.getCount());
raw.doWork();
- ass... | true |
Other | spring-projects | spring-framework | fb898e17272c13ef01f68125c3bba35f55f3fb7a.json | Remove inconsistent spaces | spring-context/src/test/java/org/springframework/aop/target/CommonsPool2TargetSourceTests.java | @@ -84,7 +84,7 @@ private void testFunctionality(String name) {
// Just check that it works--we can't make assumptions
// about the count
pooled.doWork();
- //assertEquals(INITIAL_COUNT + 1, apartment.getCount() );
+ //assertEquals(INITIAL_COUNT + 1, apartment.getCount());
}
@Test | true |
Other | spring-projects | spring-framework | fb898e17272c13ef01f68125c3bba35f55f3fb7a.json | Remove inconsistent spaces | spring-context/src/test/java/org/springframework/cache/AbstractCacheTests.java | @@ -132,7 +132,7 @@ private void doTestCacheGetCallable(Object returnValue) {
String key = createRandomKey();
assertNull(cache.get(key));
- Object value = cache.get(key, () -> returnValue );
+ Object value = cache.get(key, () -> returnValue);
assertEquals(returnValue, value);
assertEquals(value, cache.g... | true |
Other | spring-projects | spring-framework | fb898e17272c13ef01f68125c3bba35f55f3fb7a.json | Remove inconsistent spaces | spring-context/src/test/java/org/springframework/ejb/access/LocalSlsbInvokerInterceptorTests.java | @@ -89,7 +89,7 @@ public void testInvokesMethodOnEjbInstance() throws Exception {
LocalSlsbInvokerInterceptor si = configuredInterceptor(mockContext, jndiName);
- ProxyFactory pf = new ProxyFactory(new Class<?>[] { BusinessMethods.class } );
+ ProxyFactory pf = new ProxyFactory(new Class<?>[] { BusinessMethods... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.