Suppress warnings in Gradle build
This commit is contained in:
@@ -136,6 +136,7 @@ public class HttpRangeTests {
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@SuppressWarnings("unchecked")
|
||||
public void toResourceRegionExceptionLength() {
|
||||
ByteArrayResource resource = mock(ByteArrayResource.class);
|
||||
given(resource.contentLength()).willThrow(IOException.class);
|
||||
|
||||
@@ -193,6 +193,7 @@ public class RequestHeaderMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("deprecation")
|
||||
public void dateConversion() throws Exception {
|
||||
String rfc1123val = "Thu, 21 Apr 2016 17:11:08 +0100";
|
||||
servletRequest.addHeader("name", rfc1123val);
|
||||
|
||||
Reference in New Issue
Block a user