diff --git a/spring-core/src/test/java/org/springframework/core/io/PathResourceTests.java b/spring-core/src/test/java/org/springframework/core/io/PathResourceTests.java index 112dadfe2c3..57795038f23 100644 --- a/spring-core/src/test/java/org/springframework/core/io/PathResourceTests.java +++ b/spring-core/src/test/java/org/springframework/core/io/PathResourceTests.java @@ -312,7 +312,6 @@ public class PathResourceTests { @Test public void getReadableByteChannelForDir() throws Exception { PathResource resource = new PathResource(TEST_DIR); - thrown.expect(NoSuchFileException.class); resource.readableChannel(); }