Suppress warnings in Gradle build

This commit is contained in:
Sam Brannen
2016-05-03 19:56:33 +02:00
parent 64c388d524
commit 6b3eba0500
2 changed files with 2 additions and 0 deletions

View File

@@ -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);

View File

@@ -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);