From ac93b81a78e57a27c7ef2410117690a01b816ffa Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Thu, 4 Feb 2010 11:33:58 +0000 Subject: [PATCH] SPR-6794 + fix test --- .../scripting/support/ResourceScriptSourceTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.springframework.context/src/test/java/org/springframework/scripting/support/ResourceScriptSourceTests.java b/org.springframework.context/src/test/java/org/springframework/scripting/support/ResourceScriptSourceTests.java index 94e8c606e8..1bcb119b09 100644 --- a/org.springframework.context/src/test/java/org/springframework/scripting/support/ResourceScriptSourceTests.java +++ b/org.springframework.context/src/test/java/org/springframework/scripting/support/ResourceScriptSourceTests.java @@ -71,8 +71,8 @@ public class ResourceScriptSourceTests extends TestCase { resource.lastModified(); mock.setReturnValue(100, 2); // does not support File-based reading; delegates to InputStream-style reading... - resource.getFile(); - mock.setThrowable(new FileNotFoundException()); + //resource.getFile(); + //mock.setThrowable(new FileNotFoundException()); resource.getInputStream(); mock.setReturnValue(new ByteArrayInputStream(new byte[0])); // And then mock the file changing; i.e. the File says it has been modified