X Tutup
Skip to content

Commit bf8fa6e

Browse files
committed
moved getInputStream() not-null requirement to InputStreamSource itself
1 parent c976fa3 commit bf8fa6e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -232,17 +232,4 @@ public String getDescription() {
232232
assertThat(resource.contentLength(), is(3L));
233233
}
234234

235-
@Test(expected=IllegalStateException.class)
236-
public void testContentLength_withNullInputStream() throws IOException {
237-
AbstractResource resource = new AbstractResource() {
238-
public InputStream getInputStream() throws IOException {
239-
return null;
240-
}
241-
public String getDescription() {
242-
return null;
243-
}
244-
};
245-
resource.contentLength();
246-
}
247-
248235
}

0 commit comments

Comments
 (0)
X Tutup