From bf8fa6e268ca14545ccf5d036e1d64ab7af44b59 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 14 Mar 2012 16:40:47 +0100 Subject: [PATCH] moved getInputStream() not-null requirement to InputStreamSource itself --- .../org/springframework/core/io/ResourceTests.java | 13 ------------- 1 file changed, 13 deletions(-) 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(); - } - }