Browse Source

moved getInputStream() not-null requirement to InputStreamSource itself

pull/65/head
Juergen Hoeller 14 years ago
parent
commit
bf8fa6e268
  1. 13
      org.springframework.core/src/test/java/org/springframework/core/io/ResourceTests.java

13
org.springframework.core/src/test/java/org/springframework/core/io/ResourceTests.java

@ -232,17 +232,4 @@ public class ResourceTests { @@ -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();
}
}

Loading…
Cancel
Save