Polish "Suppress deprecation warnings in RestDocumentationRequestBuildersTests"

See gh-821
This commit is contained in:
Andy Wilkinson
2022-07-15 10:42:13 +01:00
parent 83fa37f44a
commit ee522f6ce1

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.
@@ -129,14 +129,14 @@ public class RestDocumentationRequestBuildersTests {
assertUri(request(HttpMethod.GET, URI.create("/uri")), HttpMethod.GET);
}
@SuppressWarnings("deprecation")
@Test
@SuppressWarnings("deprecation")
public void fileUploadTemplate() {
assertTemplate(fileUpload("/{template}", "t"), HttpMethod.POST);
}
@SuppressWarnings("deprecation")
@Test
@SuppressWarnings("deprecation")
public void fileUploadUri() {
assertUri(fileUpload(URI.create("/uri")), HttpMethod.POST);
}