Merge pull request #821 from izeye

* gh-821:
  Polish "Suppress deprecation warnings in RestDocumentationRequestBuildersTests"
  Suppress deprecation warnings in RestDocumentationRequestBuildersTests

Closes gh-821
This commit is contained in:
Andy Wilkinson
2022-07-15 10:42:23 +01:00

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2019 the original author or authors.
* Copyright 2014-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.
@@ -130,11 +130,13 @@ public class RestDocumentationRequestBuildersTests {
}
@Test
@SuppressWarnings("deprecation")
public void fileUploadTemplate() {
assertTemplate(fileUpload("/{template}", "t"), HttpMethod.POST);
}
@Test
@SuppressWarnings("deprecation")
public void fileUploadUri() {
assertUri(fileUpload(URI.create("/uri")), HttpMethod.POST);
}