Browse Source

SPR-6794

+ fix test

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2917 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Costin Leau 16 years ago
parent
commit
ece44a3ff7
  1. 4
      org.springframework.context/src/test/java/org/springframework/scripting/support/ResourceScriptSourceTests.java

4
org.springframework.context/src/test/java/org/springframework/scripting/support/ResourceScriptSourceTests.java

@ -71,8 +71,8 @@ public class ResourceScriptSourceTests extends TestCase {
resource.lastModified(); resource.lastModified();
mock.setReturnValue(100, 2); mock.setReturnValue(100, 2);
// does not support File-based reading; delegates to InputStream-style reading... // does not support File-based reading; delegates to InputStream-style reading...
resource.getFile(); //resource.getFile();
mock.setThrowable(new FileNotFoundException()); //mock.setThrowable(new FileNotFoundException());
resource.getInputStream(); resource.getInputStream();
mock.setReturnValue(new ByteArrayInputStream(new byte[0])); mock.setReturnValue(new ByteArrayInputStream(new byte[0]));
// And then mock the file changing; i.e. the File says it has been modified // And then mock the file changing; i.e. the File says it has been modified

Loading…
Cancel
Save