moved getInputStream() not-null requirement to InputStreamSource itself

This commit is contained in:
Juergen Hoeller
2012-03-14 16:40:47 +01:00
parent c976fa329f
commit bf8fa6e268

View File

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