Skip to content

Commit 835cd24

Browse files
committed
Merge pull request #821 from izeye
* gh-821: Polish "Suppress deprecation warnings in RestDocumentationRequestBuildersTests" Suppress deprecation warnings in RestDocumentationRequestBuildersTests Closes gh-821
2 parents ce2c7b3 + ee522f6 commit 835cd24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-restdocs-mockmvc/src/test/java/org/springframework/restdocs/mockmvc/RestDocumentationRequestBuildersTests.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2019 the original author or authors.
2+
* Copyright 2014-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -130,11 +130,13 @@ public void requestUri() {
130130
}
131131

132132
@Test
133+
@SuppressWarnings("deprecation")
133134
public void fileUploadTemplate() {
134135
assertTemplate(fileUpload("/{template}", "t"), HttpMethod.POST);
135136
}
136137

137138
@Test
139+
@SuppressWarnings("deprecation")
138140
public void fileUploadUri() {
139141
assertUri(fileUpload(URI.create("/uri")), HttpMethod.POST);
140142
}

0 commit comments

Comments
 (0)