diff --git a/org.springframework.core/src/test/java/org/springframework/core/io/ResourceTests.java b/org.springframework.core/src/test/java/org/springframework/core/io/ResourceTests.java index 469795437cb..3c5e4a9de68 100644 --- a/org.springframework.core/src/test/java/org/springframework/core/io/ResourceTests.java +++ b/org.springframework.core/src/test/java/org/springframework/core/io/ResourceTests.java @@ -232,17 +232,4 @@ public class ResourceTests { assertThat(resource.contentLength(), is(3L)); } - @Test(expected=IllegalStateException.class) - public void testContentLength_withNullInputStream() throws IOException { - AbstractResource resource = new AbstractResource() { - public InputStream getInputStream() throws IOException { - return null; - } - public String getDescription() { - return null; - } - }; - resource.contentLength(); - } - }