|
1 | 1 | /*
|
2 |
| - * Copyright 2014-2019 the original author or authors. |
| 2 | + * Copyright 2014-2022 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
30 | 30 |
|
31 | 31 | import static org.assertj.core.api.Assertions.assertThat;
|
32 | 32 | import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.delete;
|
33 |
| -import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.fileUpload; |
34 | 33 | import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.get;
|
35 | 34 | import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.head;
|
| 35 | +import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.multipart; |
36 | 36 | import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.options;
|
37 | 37 | import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.patch;
|
38 | 38 | import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.post;
|
@@ -130,13 +130,13 @@ public void requestUri() {
|
130 | 130 | }
|
131 | 131 |
|
132 | 132 | @Test
|
133 |
| - public void fileUploadTemplate() { |
134 |
| - assertTemplate(fileUpload("/{template}", "t"), HttpMethod.POST); |
| 133 | + public void multipartTemplate() { |
| 134 | + assertTemplate(multipart("/{template}", "t"), HttpMethod.POST); |
135 | 135 | }
|
136 | 136 |
|
137 | 137 | @Test
|
138 |
| - public void fileUploadUri() { |
139 |
| - assertUri(fileUpload(URI.create("/uri")), HttpMethod.POST); |
| 138 | + public void multipartUri() { |
| 139 | + assertUri(multipart(URI.create("/uri")), HttpMethod.POST); |
140 | 140 | }
|
141 | 141 |
|
142 | 142 | private void assertTemplate(MockHttpServletRequestBuilder builder, HttpMethod httpMethod) {
|
|
0 commit comments