+ fix test
master
Costin Leau 15 years ago
parent 2047b9b6b3
commit ac93b81a78
  1. 4
      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

Loading…
Cancel
Save