Suppress deprecation warnings in RestDocumentationRequestBuildersTests

See gh-821
This commit is contained in:
izeye
2022-06-30 23:20:37 +09:00
committed by Andy Wilkinson
parent f324611784
commit 83fa37f44a

View File

@@ -129,11 +129,13 @@ public class RestDocumentationRequestBuildersTests {
assertUri(request(HttpMethod.GET, URI.create("/uri")), HttpMethod.GET);
}
@SuppressWarnings("deprecation")
@Test
public void fileUploadTemplate() {
assertTemplate(fileUpload("/{template}", "t"), HttpMethod.POST);
}
@SuppressWarnings("deprecation")
@Test
public void fileUploadUri() {
assertUri(fileUpload(URI.create("/uri")), HttpMethod.POST);